結果

問題 No.525 二度寝の季節
ユーザー schwarzahlschwarzahl
提出日時 2017-06-09 22:36:28
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 2,901 ms
コンパイル使用メモリ 84,184 KB
実行使用メモリ 57,624 KB
最終ジャッジ日時 2023-10-23 22:02:38
合計ジャッジ時間 8,880 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
57,368 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 120 ms
57,248 KB
testcase_04 AC 119 ms
57,560 KB
testcase_05 AC 120 ms
57,480 KB
testcase_06 AC 118 ms
57,428 KB
testcase_07 AC 118 ms
57,324 KB
testcase_08 AC 120 ms
57,376 KB
testcase_09 AC 118 ms
57,364 KB
testcase_10 AC 118 ms
57,300 KB
testcase_11 AC 119 ms
57,436 KB
testcase_12 AC 119 ms
57,452 KB
testcase_13 AC 118 ms
57,528 KB
testcase_14 AC 118 ms
57,180 KB
testcase_15 AC 118 ms
57,524 KB
testcase_16 AC 120 ms
57,504 KB
testcase_17 AC 123 ms
57,332 KB
testcase_18 AC 120 ms
57,568 KB
testcase_19 AC 118 ms
57,352 KB
testcase_20 AC 108 ms
55,428 KB
testcase_21 AC 119 ms
57,400 KB
testcase_22 AC 119 ms
57,344 KB
testcase_23 AC 121 ms
57,436 KB
testcase_24 AC 122 ms
57,240 KB
testcase_25 AC 120 ms
57,400 KB
testcase_26 AC 119 ms
57,324 KB
testcase_27 AC 118 ms
57,464 KB
testcase_28 AC 117 ms
57,228 KB
testcase_29 AC 121 ms
57,528 KB
testcase_30 AC 120 ms
57,460 KB
testcase_31 AC 120 ms
57,484 KB
testcase_32 AC 119 ms
57,212 KB
testcase_33 AC 118 ms
57,464 KB
testcase_34 AC 119 ms
57,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String[] args){
		Main main = new Main();
		main.solveA();
	}

	private void solveA() {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int h = c2i(line.charAt(0)) * 10 + c2i(line.charAt(1));
		int m = c2i(line.charAt(3)) * 10 + c2i(line.charAt(4));
		m += 5;
		if (m > 60) {
			m -= 60;
			h += 1;
			h = h % 24;
		}
		System.out.printf("%02d:%02d", h, m);
	}

	private int c2i(char c) {
		return c - '0';
	}
}
0