結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2019-06-27 22:43:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 707 ms |
コンパイル使用メモリ | 65,664 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 15:30:24 |
合計ジャッジ時間 | 1,388 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
#include<iostream> #include<algorithm> using namespace std; using lint=int64_t; int main() { int N,H,M,T; cin >> N >> H >> M >> T; int time=0; time=H*60+M; for(int i=0;i<N-1;i++) time+=T; cout << time/60 << endl; cout << time%60 << endl; return 0; }