結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
daradara_sanma
|
| 提出日時 | 2017-07-11 15:47:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 272 bytes |
| コンパイル時間 | 732 ms |
| コンパイル使用メモリ | 54,108 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-07 15:01:05 |
| 合計ジャッジ時間 | 1,202 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 2 |
ソースコード
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main() {
int n, h, m, t;
cin >> n >> h >> m >> t;
t = t * (n - 1);
h = (h + t / 60) % 24 + (m + t % 60) / 60;
m = (m + t % 60) % 60;
cout << h << endl;
cout << m << endl;
return 0;
}
daradara_sanma