結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-14 17:40:11 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 37,056 KB |
| 最終ジャッジ日時 | 2026-02-22 00:19:31 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
#include <stdio.h>
int main(void)
{
int N,H,M,T;
scanf("%d%d%d%d",&N,&H,&M,&T);
if (N == 1) {
printf("%d\n%d\n",H,M);
}else {
M = M + T*N - T;
if (M>=60) {
M = M - 60;
H = H + 1;
}
printf("%d\n%d\n",H,M);
}
}