結果

問題 No.525 二度寝の季節
ユーザー fal_rndfal_rnd
提出日時 2017-06-27 19:46:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 1,000 ms
コード長 286 bytes
コンパイル時間 2,442 ms
コンパイル使用メモリ 75,212 KB
実行使用メモリ 54,440 KB
最終ジャッジ日時 2024-04-15 03:28:16
合計ジャッジ時間 8,129 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
54,204 KB
testcase_01 AC 131 ms
54,312 KB
testcase_02 AC 131 ms
54,116 KB
testcase_03 AC 131 ms
54,072 KB
testcase_04 AC 132 ms
54,204 KB
testcase_05 AC 137 ms
54,136 KB
testcase_06 AC 135 ms
54,072 KB
testcase_07 AC 130 ms
54,092 KB
testcase_08 AC 138 ms
54,396 KB
testcase_09 AC 138 ms
54,220 KB
testcase_10 AC 135 ms
54,272 KB
testcase_11 AC 140 ms
54,412 KB
testcase_12 AC 132 ms
54,004 KB
testcase_13 AC 136 ms
53,956 KB
testcase_14 AC 133 ms
54,240 KB
testcase_15 AC 131 ms
54,008 KB
testcase_16 AC 134 ms
54,068 KB
testcase_17 AC 136 ms
54,308 KB
testcase_18 AC 136 ms
54,036 KB
testcase_19 AC 134 ms
54,344 KB
testcase_20 AC 136 ms
54,268 KB
testcase_21 AC 137 ms
54,440 KB
testcase_22 AC 134 ms
54,104 KB
testcase_23 AC 132 ms
54,168 KB
testcase_24 AC 136 ms
54,000 KB
testcase_25 AC 133 ms
54,128 KB
testcase_26 AC 138 ms
53,824 KB
testcase_27 AC 133 ms
54,068 KB
testcase_28 AC 141 ms
54,392 KB
testcase_29 AC 133 ms
54,152 KB
testcase_30 AC 133 ms
53,876 KB
testcase_31 AC 134 ms
54,164 KB
testcase_32 AC 134 ms
54,052 KB
testcase_33 AC 136 ms
54,144 KB
testcase_34 AC 141 ms
54,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class A{
	public static void main(String[]c){
		c=new java.util.Scanner(System.in).next().split(":");
		int[]in={Integer.parseInt(c[0]),Integer.parseInt(c[1])};
		if(in[1]>54){
			in[0]++;
			in[0]%=24;
			in[1]-=60;
		}
		in[1]+=5;
		System.out.printf("%02d:%02d\n",in[0],in[1]);
	}
}
0