結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
jolly_gliscor
|
| 提出日時 | 2018-03-19 08:42:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 614 ms |
| コンパイル使用メモリ | 54,496 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-31 10:33:46 |
| 合計ジャッジ時間 | 1,382 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
#include <iostream>
#include <cstdlib>
using std::cout;
using std::cin;
using std::endl;
int main(void)
{
int n,h,m,t;
cin >> n >> h >> m >> t;
for (int i=1;i<n;i++){
m += t;
if (m >= 60){
m = m % 60;
h++;
}
}
cout << h << endl;
cout << m << endl;
}
jolly_gliscor