結果
問題 |
No.70 睡眠の重要性!
|
ユーザー |
![]() |
提出日時 | 2019-04-08 21:36:44 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 521 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 29,696 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 22:54:48 |
合計ジャッジ時間 | 586 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 1 |
ソースコード
// yukicoder: No.70 睡眠の重要性 // 2019.4.8 bal4u #include <stdio.h> #include <ctype.h> #define gc() getchar() int in() // 非負整数の入力 { int n = 0, c = gc(); while (isspace(c)) c = gc(); do n = 10 * n + (c & 0xf), c = gc(); while (isdigit(c)); return n; } int main() { int N, a, b, c, d, t1, t2, ans; ans = 0; N = in(); while (N--) { a = in(), b = in(), c = in(), d = in(); if (c < a) c += 24; t1 = a * 60 + b, t2 = c * 60 + d; ans += t2 - t1; } printf("%d\n", ans); return 0; }