Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a[50][2];
- int n;
- int k1=0;
- int k2=0;
- int k3=0;
- int k4=0;
- cin >> n;
- for (int i = 0; i < n; i++) {
- cin >> a[i][0] >> a[i][1];
- }
- for (int i = 0; i < n; i++) {
- if (a[i][1]>0)
- if (a[i][0]>0) k1++; else k2++;
- else if (a[i][0]>0) k4++; else k3++;
- }
- if ((k2>=3)or(k2==2)and(k1>3)or(k3>5)or(k4>9))
- cout << "Clock is broken" << "\n";
- else cout << k2 << k1 << ":" << k3 << k4 << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement