2021团体程序设计天梯赛 L1-5 大笨钟的心情
思路:
水题,略过
Tip:
无
#include <bits/stdc++.h> using namespace std; int a[1000]; int main() { for (int i = 0; i < 24; i++) cin >> a[i]; int n; while (cin >> n) { if (n < 0 || n >= 24) break; if (a[n] > 50) cout << a[n] << " Yes" << endl; else cout << a[n] << " No" << endl; } return 0; }