結果

問題 No.525 二度寝の季節
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-12 07:59:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 325 bytes
コンパイル時間 2,182 ms
コンパイル使用メモリ 74,556 KB
実行使用メモリ 54,328 KB
最終ジャッジ日時 2024-04-28 16:50:55
合計ジャッジ時間 7,861 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
53,892 KB
testcase_01 AC 124 ms
54,032 KB
testcase_02 AC 125 ms
53,856 KB
testcase_03 AC 123 ms
53,832 KB
testcase_04 AC 123 ms
53,980 KB
testcase_05 AC 121 ms
54,096 KB
testcase_06 AC 122 ms
54,236 KB
testcase_07 AC 117 ms
53,828 KB
testcase_08 AC 122 ms
54,080 KB
testcase_09 AC 124 ms
54,140 KB
testcase_10 AC 117 ms
54,252 KB
testcase_11 AC 115 ms
53,972 KB
testcase_12 AC 122 ms
54,096 KB
testcase_13 AC 123 ms
54,036 KB
testcase_14 AC 122 ms
54,048 KB
testcase_15 AC 120 ms
54,132 KB
testcase_16 AC 121 ms
53,828 KB
testcase_17 AC 118 ms
53,972 KB
testcase_18 AC 121 ms
54,228 KB
testcase_19 AC 118 ms
53,984 KB
testcase_20 AC 124 ms
53,824 KB
testcase_21 AC 124 ms
53,804 KB
testcase_22 AC 117 ms
53,964 KB
testcase_23 AC 122 ms
54,140 KB
testcase_24 AC 123 ms
54,072 KB
testcase_25 AC 121 ms
53,840 KB
testcase_26 AC 121 ms
54,328 KB
testcase_27 AC 106 ms
52,920 KB
testcase_28 AC 124 ms
53,976 KB
testcase_29 AC 120 ms
54,128 KB
testcase_30 AC 121 ms
53,812 KB
testcase_31 AC 113 ms
53,172 KB
testcase_32 AC 118 ms
53,912 KB
testcase_33 AC 120 ms
54,068 KB
testcase_34 AC 109 ms
53,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String t = sc.next();
		int m = Integer.valueOf(t.substring(0, 2)) * 60 + Integer.valueOf(t.substring(3, 5));
		m = (m + 5) % (24 * 60);
		System.out.printf("%02d:%02d\n", m / 60, m % 60);
	}
}
0