結果
問題 | No.70 睡眠の重要性! |
ユーザー | sk3388607083 |
提出日時 | 2018-06-21 18:29:59 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 25,216 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-13 07:36:23 |
合計ジャッジ時間 | 628 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:14:9: warning: ‘t’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d\n", t); ~~~~~~^~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int i; int N, H, M, h, m; int t; scanf("%d", &N); for(i = 0; i < N; i++){ scanf("%d:%d %d:%d", &H, &M, &h, &m); if(H * 60 + M > h * 60 + m) t += (24 - H) * 60 - M; else t -= H * 60 + M; t += h * 60 + m; } printf("%d\n", t); return 0; }