結果

問題 No.70 睡眠の重要性!
ユーザー zaichu
提出日時 2015-12-25 12:20:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 1,349 ms
コンパイル使用メモリ 159,496 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-18 23:45:43
合計ジャッジ時間 2,106 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
	int n;
	cin >> n;
	char zz;
	int a,b,c,d;
	int time = 0;
	for(int i = 0; i < n; i++){
		cin >> a >> zz >> b >> c >> zz >> d;
		time += ((c - a) * 60 + (d - b) + 1440) % 1440;
	}
	cout << time << endl;
	return 0;
}
	
0