結果

問題 No.70 睡眠の重要性!
ユーザー zaichuzaichu
提出日時 2015-12-25 12:20:42
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 1,478 ms
コンパイル使用メモリ 159,516 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 03:32:20
合計ジャッジ時間 1,984 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

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