結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-29 15:40:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 388 ms |
| コンパイル使用メモリ | 55,416 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-14 05:04:59 |
| 合計ジャッジ時間 | 834 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 1 |
ソースコード
#include <iostream>
using namespace std;
int main(){
ios::sync_with_stdio(false);
int n, H, M, h, m, total=0;
cin >> n;
for(int i=0; i<n; ++i){
cin >> H; cin.ignore();
cin >> M; cin.ignore();
cin >> h; cin.ignore();
cin >> m;
if(M>m) total-=60;
total+=((h+24-H)%24)*60 + (m+60-M)%60;
}
cout << total << "\n";
return 0;
}