Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- if(18-n/5>=n)
- cout<<0;
- else
- cout<<ceil((n-(18-n/5))/6.00);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement