結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2020-02-05 19:04:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 1,594 ms |
コンパイル使用メモリ | 166,988 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 20:31:30 |
合計ジャッジ時間 | 2,361 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n,h,m,t; cin >> n >> h >> m >> t; for(int i = 0; i < n-1; i++){ m += t; if(m > 60){ h++; m = m-60; } if(h > 23){ h = h - 24; } } cout << h << endl; cout << m << endl; return 0; }