Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int casovi, minuti;
- cin >> casovi >> minuti;
- int promeni = 0 ;
- for (int i = 0; i < 10; i ++)
- {
- if (minuti % 10 == 9)
- {
- promeni += 2;
- }
- else {promeni += 1;}
- minuti++;
- if (minuti == 60)
- {
- minuti = 0;
- if (casovi == 9 or casovi == 19 or casovi == 23)
- {
- promeni += 2;
- }
- else {promeni += 1;}
- casovi++;
- }
- }
- cout << promeni << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement