結果

問題 No.525 二度寝の季節
ユーザー tentententen
提出日時 2020-12-09 14:28:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 212 ms / 1,000 ms
コード長 442 bytes
コンパイル時間 2,115 ms
コンパイル使用メモリ 74,608 KB
実行使用メモリ 41,360 KB
最終ジャッジ日時 2024-09-19 01:09:46
合計ジャッジ時間 8,273 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
40,988 KB
testcase_01 AC 131 ms
41,176 KB
testcase_02 AC 129 ms
41,136 KB
testcase_03 AC 128 ms
41,124 KB
testcase_04 AC 129 ms
41,012 KB
testcase_05 AC 131 ms
41,060 KB
testcase_06 AC 130 ms
41,048 KB
testcase_07 AC 129 ms
41,324 KB
testcase_08 AC 132 ms
40,964 KB
testcase_09 AC 132 ms
41,220 KB
testcase_10 AC 133 ms
40,940 KB
testcase_11 AC 130 ms
41,360 KB
testcase_12 AC 132 ms
41,064 KB
testcase_13 AC 135 ms
41,152 KB
testcase_14 AC 132 ms
41,112 KB
testcase_15 AC 134 ms
41,340 KB
testcase_16 AC 130 ms
40,936 KB
testcase_17 AC 131 ms
40,940 KB
testcase_18 AC 212 ms
41,212 KB
testcase_19 AC 133 ms
41,172 KB
testcase_20 AC 128 ms
41,108 KB
testcase_21 AC 131 ms
41,232 KB
testcase_22 AC 130 ms
40,824 KB
testcase_23 AC 131 ms
41,248 KB
testcase_24 AC 128 ms
41,060 KB
testcase_25 AC 132 ms
41,320 KB
testcase_26 AC 133 ms
41,012 KB
testcase_27 AC 132 ms
41,148 KB
testcase_28 AC 132 ms
41,344 KB
testcase_29 AC 133 ms
41,188 KB
testcase_30 AC 132 ms
41,288 KB
testcase_31 AC 132 ms
41,288 KB
testcase_32 AC 132 ms
41,192 KB
testcase_33 AC 130 ms
41,044 KB
testcase_34 AC 132 ms
41,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] arr = sc.next().toCharArray();
        int hour = (arr[0] - '0') * 10 + arr[1] - '0';
        int minute = (arr[3] - '0') * 10 + arr[4] - '0';
        minute += 5;
        hour += minute / 60;
        hour %= 24;
        minute %= 60;
        System.out.printf("%02d:%02d", hour, minute);
    }
}
0