結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
ninoinui
|
| 提出日時 | 2020-01-12 06:15:16 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 160µs | |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 950 ms |
| コンパイル使用メモリ | 178,672 KB |
| 実行使用メモリ | 7,856 KB |
| 最終ジャッジ日時 | 2026-10-11 12:59:44 |
| 合計ジャッジ時間 | 1,724 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int ans = 0;
for (int i = 0; i < N; i++) {
int a, b, c, d;
char e;
cin >> a >> e >> b >> c >> e >> d;
int x = a * 60 + b;
int y = c * 60 + d;
ans += (x < y) ? y - x : y - x + 1440;
}
cout << ans << "\n";
}
ninoinui