結果

問題 No.652 E869120 and TimeZone
ユーザー fal_rndfal_rnd
提出日時 2018-02-27 00:08:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 2,255 ms
コンパイル使用メモリ 75,340 KB
実行使用メモリ 41,948 KB
最終ジャッジ日時 2024-05-09 20:25:26
合計ジャッジ時間 7,803 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
41,504 KB
testcase_01 AC 131 ms
41,232 KB
testcase_02 WA -
testcase_03 AC 134 ms
41,692 KB
testcase_04 AC 135 ms
41,596 KB
testcase_05 AC 140 ms
41,448 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 133 ms
41,668 KB
testcase_09 AC 132 ms
41,856 KB
testcase_10 AC 133 ms
41,468 KB
testcase_11 AC 127 ms
41,536 KB
testcase_12 AC 134 ms
41,232 KB
testcase_13 WA -
testcase_14 AC 124 ms
41,468 KB
testcase_15 AC 119 ms
41,832 KB
testcase_16 AC 134 ms
41,432 KB
testcase_17 AC 134 ms
41,424 KB
testcase_18 AC 131 ms
41,440 KB
testcase_19 AC 138 ms
41,560 KB
testcase_20 AC 131 ms
41,484 KB
testcase_21 WA -
testcase_22 AC 136 ms
41,376 KB
testcase_23 AC 133 ms
41,584 KB
testcase_24 AC 134 ms
41,376 KB
testcase_25 AC 133 ms
41,536 KB
testcase_26 AC 131 ms
41,424 KB
testcase_27 AC 131 ms
41,584 KB
testcase_28 AC 132 ms
41,364 KB
testcase_29 AC 130 ms
41,356 KB
testcase_30 AC 131 ms
41,328 KB
testcase_31 AC 128 ms
41,600 KB
testcase_32 AC 132 ms
41,564 KB
testcase_33 AC 131 ms
41,296 KB
testcase_34 AC 130 ms
41,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{

	public static void main(String[]$) {
		Scanner s=new Scanner(System.in);
		int t=2880+s.nextInt()*60+s.nextInt()
		+(int)((Double.parseDouble(s.next().substring(3))-9)*60);
		t%=1440;
		if(t<0)
			System.exit(-1);
		System.out.printf("%02d:%02d\n",t/60,t%60);
	}
}
0