2 solutions
- 1
Information
- ID
- 547
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 3
- Tags
- # Submissions
- 140
- Accepted
- 75
- Uploaded By
#include <bits/stdc++.h> using namespace std;
int main() { int a, b, c; cin >> a >> b >> c; printf("%d", a + (b - a) * (c - 1)); return 0; }