結果
問題 | No.296 n度寝 |
ユーザー |
|
提出日時 | 2018-03-30 11:51:52 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 00:22:52 |
合計ジャッジ時間 | 944 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include<stdio.h> int main(void){ int n, h, m, t, n_t; scanf("%d %d %d %d", &n, &h, &m, &t); n_t = (n-1) * t; m += n_t; if(m >= 60){ h += m / 60; m %= 60; } if(h >= 24){ h %= 24; } printf("%d\n%d", h, m); return 0; }