結果

問題 No.652 E869120 and TimeZone
ユーザー fal_rndfal_rnd
提出日時 2018-02-27 00:29:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 331 bytes
コンパイル時間 1,892 ms
コンパイル使用メモリ 73,820 KB
実行使用メモリ 58,088 KB
最終ジャッジ日時 2023-09-02 05:26:11
合計ジャッジ時間 7,436 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,592 KB
testcase_01 AC 117 ms
55,504 KB
testcase_02 AC 118 ms
55,704 KB
testcase_03 AC 117 ms
55,376 KB
testcase_04 AC 117 ms
56,028 KB
testcase_05 AC 117 ms
56,028 KB
testcase_06 AC 115 ms
55,588 KB
testcase_07 AC 115 ms
55,824 KB
testcase_08 AC 118 ms
55,776 KB
testcase_09 AC 118 ms
55,984 KB
testcase_10 AC 117 ms
55,616 KB
testcase_11 AC 118 ms
56,016 KB
testcase_12 AC 118 ms
56,168 KB
testcase_13 AC 118 ms
58,088 KB
testcase_14 AC 114 ms
55,844 KB
testcase_15 AC 114 ms
55,772 KB
testcase_16 AC 115 ms
55,372 KB
testcase_17 AC 121 ms
56,356 KB
testcase_18 AC 118 ms
55,720 KB
testcase_19 AC 119 ms
55,632 KB
testcase_20 AC 117 ms
56,236 KB
testcase_21 AC 118 ms
55,712 KB
testcase_22 AC 115 ms
56,064 KB
testcase_23 AC 124 ms
55,592 KB
testcase_24 AC 120 ms
56,092 KB
testcase_25 AC 123 ms
55,992 KB
testcase_26 AC 121 ms
55,472 KB
testcase_27 AC 118 ms
55,936 KB
testcase_28 AC 114 ms
56,012 KB
testcase_29 AC 116 ms
55,996 KB
testcase_30 AC 119 ms
55,712 KB
testcase_31 AC 118 ms
55,772 KB
testcase_32 AC 113 ms
55,772 KB
testcase_33 AC 116 ms
55,716 KB
testcase_34 AC 118 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{

	public static void main(String[]$) {
		Scanner s=new Scanner(System.in);
		int t=900+s.nextInt()*60+s.nextInt();
		String v=s.next();
		if(v.indexOf('.')==-1)
			v+=".0";
		t+=Integer.parseInt(v.substring(3).replace(".",""))*6;
		t%=1440;
		System.out.printf("%02d:%02d\n",t/60,t%60);
	}
}
0