結果
問題 | No.2371 最大の試練それは起床 |
ユーザー |
![]() |
提出日時 | 2023-07-07 21:41:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 451 bytes |
コンパイル時間 | 669 ms |
コンパイル使用メモリ | 69,372 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-21 17:28:10 |
合計ジャッジ時間 | 1,558 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>using namespace std;int main(){// inputint H,M;cin >> H >> M;string ans ;if(H > 8){ans = "No";}else if(H==8){if(0<=M and M<30){ans = "Late";} else {ans = "No";}}else if(H == 7){if(0<=M and M<30){ans = "Yes";} else {ans = "Late";}} else {ans ="Yes";}cout << ans << endl;return 0;}