結果

問題 No.525 二度寝の季節
ユーザー syuki791syuki791
提出日時 2017-07-01 20:59:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 179 ms / 1,000 ms
コード長 414 bytes
コンパイル時間 2,410 ms
コンパイル使用メモリ 76,568 KB
実行使用メモリ 55,272 KB
最終ジャッジ日時 2024-04-15 08:10:25
合計ジャッジ時間 9,654 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 171 ms
55,232 KB
testcase_01 AC 171 ms
54,996 KB
testcase_02 AC 177 ms
55,068 KB
testcase_03 AC 174 ms
54,864 KB
testcase_04 AC 168 ms
55,196 KB
testcase_05 AC 172 ms
55,032 KB
testcase_06 AC 175 ms
54,892 KB
testcase_07 AC 172 ms
55,120 KB
testcase_08 AC 171 ms
55,192 KB
testcase_09 AC 173 ms
54,920 KB
testcase_10 AC 169 ms
55,168 KB
testcase_11 AC 175 ms
54,988 KB
testcase_12 AC 175 ms
54,968 KB
testcase_13 AC 170 ms
55,160 KB
testcase_14 AC 172 ms
55,156 KB
testcase_15 AC 171 ms
55,168 KB
testcase_16 AC 173 ms
55,216 KB
testcase_17 AC 171 ms
55,216 KB
testcase_18 AC 172 ms
55,188 KB
testcase_19 AC 170 ms
55,244 KB
testcase_20 AC 170 ms
54,920 KB
testcase_21 AC 167 ms
55,000 KB
testcase_22 AC 168 ms
54,896 KB
testcase_23 AC 165 ms
55,008 KB
testcase_24 AC 168 ms
55,040 KB
testcase_25 AC 172 ms
55,044 KB
testcase_26 AC 171 ms
55,012 KB
testcase_27 AC 169 ms
54,908 KB
testcase_28 AC 179 ms
55,008 KB
testcase_29 AC 171 ms
54,888 KB
testcase_30 AC 171 ms
55,016 KB
testcase_31 AC 169 ms
55,152 KB
testcase_32 AC 174 ms
55,132 KB
testcase_33 AC 168 ms
55,032 KB
testcase_34 AC 170 ms
55,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	String[] str = s.nextLine().split(":");
	s.close();
	int hour = Integer.parseInt(str[0]);
	int min =Integer.parseInt(str[1]);
	int minAns = (min+5)%60;
	int hourAns = ((min+5)/60+hour)%24;
	System.out.println(String.format("%02d", hourAns)+":"+String.format("%02d", minAns));
	
	}

}
0