結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
fumi6328
|
| 提出日時 | 2018-08-23 22:29:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 280 bytes |
| コンパイル時間 | 645 ms |
| コンパイル使用メモリ | 53,960 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-29 07:57:54 |
| 合計ジャッジ時間 | 1,393 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int n,h,m,t;
cin >> n >> h >> m >> t;
m += t * (n-1);
if(m >= 60){
h += m / 60;
m %= 60;
}
if(h >= 24) h % 24;
cout << h << '\n' << m << endl;
return 0;
}
fumi6328