結果

問題 No.525 二度寝の季節
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-10 21:34:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 165 ms / 1,000 ms
コード長 447 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 77,332 KB
実行使用メモリ 55,444 KB
最終ジャッジ日時 2024-04-24 01:41:28
合計ジャッジ時間 8,760 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
54,908 KB
testcase_01 AC 133 ms
54,692 KB
testcase_02 AC 138 ms
55,364 KB
testcase_03 AC 161 ms
55,124 KB
testcase_04 AC 160 ms
55,012 KB
testcase_05 AC 159 ms
54,896 KB
testcase_06 AC 161 ms
55,004 KB
testcase_07 AC 164 ms
54,772 KB
testcase_08 AC 159 ms
55,108 KB
testcase_09 AC 162 ms
54,956 KB
testcase_10 AC 157 ms
55,144 KB
testcase_11 AC 153 ms
54,840 KB
testcase_12 AC 163 ms
55,196 KB
testcase_13 AC 142 ms
54,628 KB
testcase_14 AC 136 ms
54,504 KB
testcase_15 AC 153 ms
55,212 KB
testcase_16 AC 153 ms
55,036 KB
testcase_17 AC 149 ms
55,024 KB
testcase_18 AC 145 ms
55,104 KB
testcase_19 AC 143 ms
55,348 KB
testcase_20 AC 165 ms
55,444 KB
testcase_21 AC 159 ms
54,936 KB
testcase_22 AC 151 ms
54,860 KB
testcase_23 AC 136 ms
54,456 KB
testcase_24 AC 155 ms
54,900 KB
testcase_25 AC 156 ms
54,996 KB
testcase_26 AC 153 ms
54,868 KB
testcase_27 AC 155 ms
55,000 KB
testcase_28 AC 136 ms
54,720 KB
testcase_29 AC 147 ms
55,008 KB
testcase_30 AC 127 ms
54,496 KB
testcase_31 AC 131 ms
54,392 KB
testcase_32 AC 130 ms
54,776 KB
testcase_33 AC 148 ms
54,996 KB
testcase_34 AC 140 ms
55,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		String[] s = sc.next().split(":");
		int[] ar = {Integer.parseInt(s[0]),Integer.parseInt(s[1])};
		int minute = ar[0]*60 + ar[1] + 5;
		int h = (minute/60)%24;
		int m = minute%60;
		String ans = "";
		if (h < 10) {ans += "0";}
		ans += h + ":";
		if (m < 10) {ans += "0";}
		ans += m;
		System.out.println(ans);
	}
}
0