結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2020-08-20 23:37:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 635 ms |
コンパイル使用メモリ | 63,104 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 18:08:37 |
合計ジャッジ時間 | 1,381 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 10 |
ソースコード
#include <iostream> using namespace std; int main(){ int n,h,m,t; cin>>n>>h>>m>>t; for(int i=1;i<=n-1;i++){ if(m+t>=60){ h++; m=(m+t)%60; } m+=t; } cout<<h<<endl; cout<<m<<endl; return 0; }