結果

問題 No.525 二度寝の季節
ユーザー jimanojimano
提出日時 2018-01-27 17:52:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 113 ms / 1,000 ms
コード長 619 bytes
コンパイル時間 3,169 ms
コンパイル使用メモリ 72,152 KB
実行使用メモリ 56,088 KB
最終ジャッジ日時 2023-08-28 09:59:00
合計ジャッジ時間 8,131 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
55,864 KB
testcase_01 AC 109 ms
55,564 KB
testcase_02 AC 109 ms
55,768 KB
testcase_03 AC 113 ms
55,768 KB
testcase_04 AC 109 ms
53,620 KB
testcase_05 AC 109 ms
55,708 KB
testcase_06 AC 108 ms
55,628 KB
testcase_07 AC 108 ms
55,744 KB
testcase_08 AC 109 ms
55,636 KB
testcase_09 AC 108 ms
55,648 KB
testcase_10 AC 109 ms
55,664 KB
testcase_11 AC 109 ms
55,824 KB
testcase_12 AC 110 ms
56,032 KB
testcase_13 AC 108 ms
55,528 KB
testcase_14 AC 108 ms
55,504 KB
testcase_15 AC 108 ms
55,540 KB
testcase_16 AC 107 ms
55,664 KB
testcase_17 AC 110 ms
55,728 KB
testcase_18 AC 109 ms
55,396 KB
testcase_19 AC 107 ms
55,520 KB
testcase_20 AC 106 ms
55,556 KB
testcase_21 AC 107 ms
55,532 KB
testcase_22 AC 107 ms
56,056 KB
testcase_23 AC 107 ms
55,584 KB
testcase_24 AC 106 ms
55,564 KB
testcase_25 AC 107 ms
55,764 KB
testcase_26 AC 106 ms
55,372 KB
testcase_27 AC 107 ms
55,440 KB
testcase_28 AC 106 ms
55,964 KB
testcase_29 AC 107 ms
56,088 KB
testcase_30 AC 106 ms
55,596 KB
testcase_31 AC 108 ms
55,496 KB
testcase_32 AC 107 ms
55,664 KB
testcase_33 AC 107 ms
55,532 KB
testcase_34 AC 108 ms
55,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0525_2 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] input = br.readLine().split(":");
			int hour = Integer.parseInt(input[0]);
			int minute = Integer.parseInt(input[1]);

			minute += 5;
			if (minute > 59) {
				minute -= 60;
				hour++;
				if (hour > 23) {
					hour -= 24;
				}
			}

			System.out.println(String.format("%02d:%02d", hour, minute));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0