結果
問題 | No.652 E869120 and TimeZone |
ユーザー | 37zigen |
提出日時 | 2020-03-19 01:27:51 |
言語 | Java19 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 556 bytes |
コンパイル時間 | 2,454 ms |
コンパイル使用メモリ | 80,008 KB |
実行使用メモリ | 59,428 KB |
最終ジャッジ日時 | 2023-08-20 20:33:02 |
合計ジャッジ時間 | 9,942 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 143 ms
56,964 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 139 ms
56,844 KB |
testcase_06 | AC | 141 ms
57,068 KB |
testcase_07 | AC | 146 ms
56,848 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 150 ms
56,956 KB |
testcase_13 | AC | 135 ms
57,056 KB |
testcase_14 | AC | 142 ms
57,292 KB |
testcase_15 | WA | - |
testcase_16 | AC | 137 ms
56,956 KB |
testcase_17 | AC | 140 ms
57,048 KB |
testcase_18 | AC | 144 ms
57,048 KB |
testcase_19 | AC | 142 ms
57,204 KB |
testcase_20 | AC | 142 ms
56,652 KB |
testcase_21 | AC | 137 ms
56,744 KB |
testcase_22 | AC | 143 ms
56,896 KB |
testcase_23 | AC | 136 ms
56,688 KB |
testcase_24 | AC | 138 ms
57,260 KB |
testcase_25 | WA | - |
testcase_26 | AC | 139 ms
57,408 KB |
testcase_27 | WA | - |
testcase_28 | AC | 139 ms
56,736 KB |
testcase_29 | AC | 151 ms
54,676 KB |
testcase_30 | AC | 142 ms
56,932 KB |
testcase_31 | AC | 140 ms
57,268 KB |
testcase_32 | AC | 132 ms
56,684 KB |
testcase_33 | AC | 136 ms
56,908 KB |
testcase_34 | AC | 139 ms
57,376 KB |
ソースコード
import java.util.ArrayDeque; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int h=sc.nextInt(); int m=sc.nextInt(); String str=sc.next(); str=str.substring(3, str.length()); int add_m=(int)(Double.valueOf(str)*60); m+=add_m; h=(h+m/60-9+24)%24; m%=60; System.out.println((h<10?"0":"")+h+":"+(m<10?"0":"")+m); } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }