Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int i, n;
- cin >> n >> i;
- for (int a = 0; a < n; a++)
- {
- cout << ((i < 192) ? 192 : 192 + ceil((i - 192) / 250.0) * 250) << endl;
- cin >> i;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement