結果

問題 No.525 二度寝の季節
ユーザー tsunabittsunabit
提出日時 2018-07-01 15:07:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 161 ms / 1,000 ms
コード長 659 bytes
コンパイル時間 4,098 ms
コンパイル使用メモリ 81,912 KB
実行使用メモリ 59,328 KB
最終ジャッジ日時 2023-09-13 16:36:06
合計ジャッジ時間 12,470 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 161 ms
57,048 KB
testcase_01 AC 156 ms
57,336 KB
testcase_02 AC 155 ms
57,324 KB
testcase_03 AC 155 ms
57,176 KB
testcase_04 AC 159 ms
57,144 KB
testcase_05 AC 156 ms
57,040 KB
testcase_06 AC 155 ms
57,072 KB
testcase_07 AC 154 ms
57,032 KB
testcase_08 AC 155 ms
57,524 KB
testcase_09 AC 156 ms
57,160 KB
testcase_10 AC 159 ms
56,912 KB
testcase_11 AC 155 ms
57,268 KB
testcase_12 AC 156 ms
57,372 KB
testcase_13 AC 154 ms
57,268 KB
testcase_14 AC 161 ms
56,904 KB
testcase_15 AC 155 ms
57,188 KB
testcase_16 AC 155 ms
57,436 KB
testcase_17 AC 152 ms
56,932 KB
testcase_18 AC 154 ms
57,188 KB
testcase_19 AC 152 ms
57,020 KB
testcase_20 AC 152 ms
57,408 KB
testcase_21 AC 153 ms
57,268 KB
testcase_22 AC 159 ms
57,468 KB
testcase_23 AC 151 ms
57,092 KB
testcase_24 AC 153 ms
57,348 KB
testcase_25 AC 154 ms
59,328 KB
testcase_26 AC 159 ms
57,068 KB
testcase_27 AC 157 ms
57,148 KB
testcase_28 AC 154 ms
57,248 KB
testcase_29 AC 154 ms
57,160 KB
testcase_30 AC 159 ms
57,464 KB
testcase_31 AC 157 ms
57,368 KB
testcase_32 AC 158 ms
57,124 KB
testcase_33 AC 156 ms
57,136 KB
testcase_34 AC 153 ms
57,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No525 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		String[] t = sc.next().split(":");
		LocalDateTime tt = LocalDateTime.of(2016, 1, 1, Integer.parseInt(t[0]), Integer.parseInt(t[1]));
		// DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm");
		tt = tt.plusMinutes(5);
		// dtf.format(tt);
		String h = String.valueOf(tt.getHour());
		String m = String.valueOf(tt.getMinute());
		System.out.println((h.length() == 1 ? "0" + h : h) + ":" + (m.length() == 1 ? "0" + m : m));
	}
}
0