这道题其实有一种情况一直不会发生 2333
using namespace std; int main() { int t; cin >> t; while (t–) { string s; cin >> s; if (s <= “07:45:00”) cout << “You are living a healthy life!\n”; else if (s <= “07:50:00”) cout << “Hurry up!\n”; else cout << “You are late!\n”; } return 0; }
这道题其实有一种情况一直不会发生 2333
include
include
using namespace std;
int main() {
int t;
cin >> t;
while (t–) {
string s;
cin >> s;
if (s <= “07:45:00”)
cout << “You are living a healthy life!\n”;
else if (s <= “07:50:00”)
cout << “Hurry up!\n”;
else
cout << “You are late!\n”;
}
return 0;
}