結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
ococonomy1
|
| 提出日時 | 2018-09-08 13:08:21 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 282 bytes |
| コンパイル時間 | 507 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-15 23:36:38 |
| 合計ジャッジ時間 | 1,178 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 5 |
ソースコード
#include <stdio.h>
int main(void) {
int n,h,m,t;
scanf("%d",&n); scanf("%d",&h); scanf("%d",&m); scanf("%d",&t);
for(int i = 1; i < n; i++){
m += t;
while(m > 60){
m -= 60;
h++;
}
while(h > 24){
h -= 24;
}
}
printf("%d\n%d\n",h,m);
}
ococonomy1