Advertisement
add1ctus

Штрајк

Mar 2nd, 2015
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <cmath>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int n;
  9.     cin>>n;
  10.     if(18-n/5>=n)
  11.         cout<<0;
  12.     else
  13.         cout<<ceil((n-(18-n/5))/6.00);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement