結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2019-09-28 00:36:15 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 29,568 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-25 03:37:45 |
合計ジャッジ時間 | 1,034 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main() { | ^~~~
ソースコード
#include <stdio.h> main() { int N, H, M, T; scanf("%d %d %d %d", &N, &H, &M, &T); long minute = H*60+M; minute += T*(N-1); while (minute >= 24*60) { minute -= 24*60; } printf("%d\n%d\n", minute/60, minute%60); }