結果

問題 No.525 二度寝の季節
ユーザー mosmos_21mosmos_21
提出日時 2017-06-09 22:24:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 364 bytes
コンパイル時間 3,225 ms
コンパイル使用メモリ 80,668 KB
実行使用メモリ 57,616 KB
最終ジャッジ日時 2023-10-23 21:27:29
合計ジャッジ時間 9,145 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
57,448 KB
testcase_01 AC 117 ms
57,448 KB
testcase_02 AC 106 ms
56,284 KB
testcase_03 AC 117 ms
57,420 KB
testcase_04 AC 107 ms
56,284 KB
testcase_05 AC 106 ms
56,280 KB
testcase_06 AC 116 ms
57,516 KB
testcase_07 AC 113 ms
56,604 KB
testcase_08 AC 126 ms
57,252 KB
testcase_09 AC 124 ms
57,160 KB
testcase_10 AC 124 ms
57,460 KB
testcase_11 AC 123 ms
57,288 KB
testcase_12 AC 110 ms
56,280 KB
testcase_13 AC 117 ms
57,308 KB
testcase_14 AC 118 ms
57,376 KB
testcase_15 AC 117 ms
57,256 KB
testcase_16 AC 122 ms
57,576 KB
testcase_17 AC 118 ms
57,224 KB
testcase_18 AC 117 ms
57,364 KB
testcase_19 AC 119 ms
57,188 KB
testcase_20 AC 103 ms
55,820 KB
testcase_21 AC 117 ms
57,360 KB
testcase_22 AC 119 ms
57,616 KB
testcase_23 AC 117 ms
56,224 KB
testcase_24 AC 124 ms
57,564 KB
testcase_25 AC 119 ms
57,376 KB
testcase_26 AC 118 ms
57,356 KB
testcase_27 AC 117 ms
57,372 KB
testcase_28 AC 118 ms
57,136 KB
testcase_29 AC 117 ms
57,580 KB
testcase_30 AC 118 ms
57,312 KB
testcase_31 AC 117 ms
57,428 KB
testcase_32 AC 117 ms
57,208 KB
testcase_33 AC 116 ms
57,124 KB
testcase_34 AC 117 ms
57,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	static Scanner in = new Scanner(System.in);
	public static void main(String[] args){
		String[] ss = in.nextLine().split(":");
		int a = Integer.parseInt(ss[1]) + 5;
		int b = Integer.parseInt(ss[0]);
		if(a >= 60){
			a %= 60;
			b++;
		}
		if(b >= 24){
			b %= 24;
		}
		System.out.printf("%02d:%02d", b, a);
	}
}
0