Advertisement
Root13

Untitled

Sep 24th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n , m , k , s;
  8.  
  9. cin >> n >> m >> k;
  10.  
  11. if ((m / 2) * k < 2 * (m / 2) + 10) cout << "0";
  12. else s = (m + n + k - 1) / k ;
  13. cout << s;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement