結果

問題 No.525 二度寝の季節
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-12 07:59:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 325 bytes
コンパイル時間 2,296 ms
コンパイル使用メモリ 74,016 KB
実行使用メモリ 41,212 KB
最終ジャッジ日時 2024-11-17 10:34:46
合計ジャッジ時間 7,251 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
39,928 KB
testcase_01 AC 113 ms
40,504 KB
testcase_02 AC 114 ms
40,896 KB
testcase_03 AC 117 ms
41,060 KB
testcase_04 AC 120 ms
41,212 KB
testcase_05 AC 114 ms
41,004 KB
testcase_06 AC 108 ms
39,912 KB
testcase_07 AC 113 ms
40,960 KB
testcase_08 AC 114 ms
40,980 KB
testcase_09 AC 116 ms
40,940 KB
testcase_10 AC 114 ms
40,844 KB
testcase_11 AC 115 ms
41,056 KB
testcase_12 AC 104 ms
39,844 KB
testcase_13 AC 129 ms
40,904 KB
testcase_14 AC 118 ms
41,076 KB
testcase_15 AC 117 ms
41,108 KB
testcase_16 AC 102 ms
39,716 KB
testcase_17 AC 119 ms
41,004 KB
testcase_18 AC 101 ms
40,016 KB
testcase_19 AC 119 ms
40,800 KB
testcase_20 AC 114 ms
40,888 KB
testcase_21 AC 120 ms
41,200 KB
testcase_22 AC 118 ms
40,864 KB
testcase_23 AC 117 ms
40,940 KB
testcase_24 AC 116 ms
40,928 KB
testcase_25 AC 120 ms
40,268 KB
testcase_26 AC 117 ms
40,756 KB
testcase_27 AC 112 ms
41,056 KB
testcase_28 AC 129 ms
41,040 KB
testcase_29 AC 118 ms
41,168 KB
testcase_30 AC 110 ms
39,940 KB
testcase_31 AC 124 ms
41,184 KB
testcase_32 AC 114 ms
40,940 KB
testcase_33 AC 109 ms
40,216 KB
testcase_34 AC 117 ms
41,184 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