結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2019-02-01 20:42:22 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 657 ms |
コンパイル使用メモリ | 52,804 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 01:49:24 |
合計ジャッジ時間 | 1,047 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 16 |
ソースコード
#include <iostream> using namespace std; int main() { int n, h, m, t; cin >> n >> h >> m >> t; n--; while (n-- > 0) { m += t; while (m >= 60) { m -= 60; h++; } } if (h >= 24) h %= 24; return 0; }