結果

問題 No.525 二度寝の季節
ユーザー fal_rndfal_rnd
提出日時 2017-06-27 19:41:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 1,000 ms
コード長 369 bytes
コンパイル時間 4,573 ms
コンパイル使用メモリ 85,948 KB
実行使用メモリ 54,520 KB
最終ジャッジ日時 2024-04-15 03:28:38
合計ジャッジ時間 9,874 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
54,340 KB
testcase_01 AC 148 ms
54,224 KB
testcase_02 AC 138 ms
53,820 KB
testcase_03 AC 140 ms
54,000 KB
testcase_04 AC 141 ms
54,300 KB
testcase_05 AC 143 ms
54,420 KB
testcase_06 AC 144 ms
54,232 KB
testcase_07 AC 141 ms
53,996 KB
testcase_08 AC 139 ms
53,880 KB
testcase_09 AC 143 ms
54,264 KB
testcase_10 AC 140 ms
54,408 KB
testcase_11 AC 141 ms
54,372 KB
testcase_12 AC 142 ms
54,344 KB
testcase_13 AC 139 ms
54,088 KB
testcase_14 AC 140 ms
54,132 KB
testcase_15 AC 142 ms
54,216 KB
testcase_16 AC 136 ms
54,152 KB
testcase_17 AC 137 ms
54,044 KB
testcase_18 AC 139 ms
54,172 KB
testcase_19 AC 142 ms
53,916 KB
testcase_20 AC 141 ms
54,396 KB
testcase_21 AC 140 ms
54,136 KB
testcase_22 AC 141 ms
54,232 KB
testcase_23 AC 137 ms
54,036 KB
testcase_24 AC 141 ms
54,384 KB
testcase_25 AC 139 ms
54,172 KB
testcase_26 AC 140 ms
54,144 KB
testcase_27 AC 137 ms
53,980 KB
testcase_28 AC 140 ms
54,004 KB
testcase_29 AC 142 ms
54,112 KB
testcase_30 AC 144 ms
54,520 KB
testcase_31 AC 147 ms
54,296 KB
testcase_32 AC 139 ms
54,200 KB
testcase_33 AC 138 ms
54,128 KB
testcase_34 AC 140 ms
53,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

public class Solution{
	static Scanner s=new Scanner(System.in);
	public static void main(String[]__){
		int[] in=Arrays.stream(s.next().split(":")).mapToInt(Integer::parseInt).toArray();
		
		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