Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long int n, m, s, sum = 0, i;
- cin >> n >> m >> s;
- for(i = 0; sum<s; i++)
- {
- if(i<100)sum+=n;
- if(i>=100) sum+=m;
- }
- cout << i;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment