結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2015-01-29 04:00:47 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 40,116 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-07 18:08:57 |
| 合計ジャッジ時間 | 579 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
#include <cstdio>
int main()
{
int n;
while (~scanf("%d", &n)) {
int res=0;
while (n--) {
int a, b, c, d;
scanf("%d:%d %d:%d", &a, &b, &c, &d);
int x=a*60+b, y=c*60+d;
if (x>y) y+=24*60;
res+=y-x;
}
printf("%d\n", res);
}
}
hogeover30