結果

問題 No.525 二度寝の季節
ユーザー GrenacheGrenache
提出日時 2017-06-17 07:13:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 141 ms / 1,000 ms
コード長 682 bytes
コンパイル時間 3,728 ms
コンパイル使用メモリ 75,424 KB
実行使用メモリ 58,108 KB
最終ジャッジ日時 2024-04-08 17:03:49
合計ジャッジ時間 10,116 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
57,560 KB
testcase_01 AC 134 ms
57,856 KB
testcase_02 AC 132 ms
57,748 KB
testcase_03 AC 133 ms
57,856 KB
testcase_04 AC 132 ms
57,832 KB
testcase_05 AC 138 ms
57,968 KB
testcase_06 AC 135 ms
57,580 KB
testcase_07 AC 137 ms
57,852 KB
testcase_08 AC 132 ms
57,704 KB
testcase_09 AC 131 ms
57,824 KB
testcase_10 AC 132 ms
58,108 KB
testcase_11 AC 134 ms
55,916 KB
testcase_12 AC 132 ms
57,832 KB
testcase_13 AC 134 ms
57,824 KB
testcase_14 AC 132 ms
57,852 KB
testcase_15 AC 134 ms
57,832 KB
testcase_16 AC 131 ms
57,836 KB
testcase_17 AC 131 ms
57,852 KB
testcase_18 AC 134 ms
57,708 KB
testcase_19 AC 141 ms
57,572 KB
testcase_20 AC 139 ms
57,840 KB
testcase_21 AC 140 ms
57,832 KB
testcase_22 AC 138 ms
58,088 KB
testcase_23 AC 133 ms
57,964 KB
testcase_24 AC 134 ms
57,836 KB
testcase_25 AC 137 ms
57,564 KB
testcase_26 AC 134 ms
57,964 KB
testcase_27 AC 133 ms
57,680 KB
testcase_28 AC 132 ms
57,576 KB
testcase_29 AC 131 ms
57,832 KB
testcase_30 AC 132 ms
57,848 KB
testcase_31 AC 131 ms
57,696 KB
testcase_32 AC 134 ms
57,832 KB
testcase_33 AC 134 ms
57,824 KB
testcase_34 AC 132 ms
57,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder525 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		String[] hm = sc.next().split(":");

		int hh = Integer.parseInt(hm[0]);
		int mm = Integer.parseInt(hm[1]);

		hh = (hh + (mm + 5) / 60) % 24;
		mm = (mm + 5) % 60;

		pr.printf("%02d:%02d\n", hh, mm);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0