Advertisement
Jayss8

WCIPEG Triple Fat Ladies (C++)

Jul 6th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int i, n;
  9.     cin >> n >> i;
  10.     for (int a = 0; a < n; a++)
  11.     {
  12.         cout << ((i < 192) ? 192 : 192 + ceil((i - 192) / 250.0) * 250) << endl;
  13.         cin >> i;
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement