大笨钟的心情

题源

团体程序设计天梯赛

题解

#include<iostream>
using namespace std;
int BigBen[24];
int main(){
    for(int i=0;i<24;i++)cin >> BigBen[i];
    for(int time;;){
        cin >> time;
        if(0<=time&&time<=23){
            cout << BigBen[time];
            if(BigBen[time]>50)cout << " Yes";
            else cout << " No";
            cout << endl;
        }else return 0;
    }
    return 0;
}
posted @ 2021-05-02 16:49  summeriver13  阅读(94)  评论(0)    收藏  举报