結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
ococonomy1
|
| 提出日時 | 2018-09-08 13:03:01 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 283 ms |
| コンパイル使用メモリ | 28,416 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-15 23:21:51 |
| 合計ジャッジ時間 | 863 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
#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++;
}
}
printf("%d\n%d\n",h,m);
}
ococonomy1