Run ID:73858
提交时间:2024-05-19 18:11:58
#include<iostream> using namespace std; int main() { int a[100]={}; int b[100]={}; int c[100]={}; int q=0,w=0,e=0; for(int i=0;i<4;i++){ cin >> a[i]; if(a[i]<=59){ q++; } } for(int i=0;i<4;i++){ cin >> b[i]; if(a[i]<=59){ w++; } } for(int i=0;i<4;i++){ cin >> c[i]; if(a[i]<=59){ e++; } } if(q>=1){ for(int i=0;i<4;i++){ cout << a[i]; } } if(w>=1){ for(int i=0;i<4;i++){ cout << a[i]; } } if(e>=1){ for(int i=0;i<4;i++){ cout << a[i]; } } }