結果

問題 No.525 二度寝の季節
ユーザー YOSHIYOSHI
提出日時 2021-03-18 21:59:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 1,000 ms
コード長 472 bytes
コンパイル時間 3,613 ms
コンパイル使用メモリ 74,912 KB
実行使用メモリ 41,376 KB
最終ジャッジ日時 2024-04-28 12:36:11
合計ジャッジ時間 9,466 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,024 KB
testcase_01 AC 125 ms
40,916 KB
testcase_02 AC 124 ms
40,968 KB
testcase_03 AC 121 ms
40,896 KB
testcase_04 AC 118 ms
40,644 KB
testcase_05 AC 123 ms
40,828 KB
testcase_06 AC 125 ms
40,968 KB
testcase_07 AC 122 ms
40,768 KB
testcase_08 AC 123 ms
41,032 KB
testcase_09 AC 122 ms
40,812 KB
testcase_10 AC 122 ms
40,864 KB
testcase_11 AC 123 ms
40,768 KB
testcase_12 AC 125 ms
40,636 KB
testcase_13 AC 123 ms
41,376 KB
testcase_14 AC 124 ms
40,804 KB
testcase_15 AC 123 ms
41,028 KB
testcase_16 AC 119 ms
40,680 KB
testcase_17 AC 130 ms
41,040 KB
testcase_18 AC 121 ms
41,056 KB
testcase_19 AC 119 ms
40,688 KB
testcase_20 AC 118 ms
40,968 KB
testcase_21 AC 116 ms
41,028 KB
testcase_22 AC 123 ms
41,004 KB
testcase_23 AC 119 ms
41,088 KB
testcase_24 AC 121 ms
40,996 KB
testcase_25 AC 120 ms
40,972 KB
testcase_26 AC 120 ms
40,936 KB
testcase_27 AC 123 ms
40,884 KB
testcase_28 AC 124 ms
41,232 KB
testcase_29 AC 123 ms
41,032 KB
testcase_30 AC 127 ms
40,864 KB
testcase_31 AC 124 ms
40,632 KB
testcase_32 AC 120 ms
41,004 KB
testcase_33 AC 135 ms
40,580 KB
testcase_34 AC 120 ms
40,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No00000525_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String[] t = br.readLine().split(":");
		int h = Integer.parseInt(t[0]);
		int m = Integer.parseInt(t[1]);
		System.out.println(String.format("%02d:%02d", (h + ((m + 5) / 60)) % 24, (m + 5) % 60));
	}
}
0