結果

問題 No.70 睡眠の重要性!
ユーザー fal_rndfal_rnd
提出日時 2016-10-26 22:43:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 1,879 ms
コンパイル使用メモリ 74,668 KB
実行使用メモリ 56,396 KB
最終ジャッジ日時 2024-05-03 06:13:59
合計ジャッジ時間 3,111 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import static java.lang.Integer.parseInt;

import java.util.Scanner;

class A {

	static Scanner s = new Scanner(System.in);

	public static void main(String[] args) {
		String in[];
		int r=0;

		s.nextLine();
		while(s.hasNextLine()) {
			in = s.nextLine().split("( |:)");
			r += (parseInt(in[2])-parseInt(in[0])+24)%24*60 + (parseInt(in[3])-parseInt(in[1]));
			System.out.println(r);
		}
	}
}
0