結果

問題 No.525 二度寝の季節
ユーザー uafr_csuafr_cs
提出日時 2017-10-28 16:39:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 720 bytes
コンパイル時間 2,341 ms
コンパイル使用メモリ 75,824 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-05-01 21:02:03
合計ジャッジ時間 7,094 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
40,584 KB
testcase_01 AC 107 ms
40,848 KB
testcase_02 AC 107 ms
41,564 KB
testcase_03 AC 101 ms
39,940 KB
testcase_04 AC 101 ms
40,160 KB
testcase_05 AC 111 ms
41,152 KB
testcase_06 AC 110 ms
41,200 KB
testcase_07 AC 110 ms
41,112 KB
testcase_08 AC 103 ms
40,268 KB
testcase_09 AC 108 ms
41,176 KB
testcase_10 AC 106 ms
40,976 KB
testcase_11 AC 106 ms
40,852 KB
testcase_12 AC 103 ms
40,432 KB
testcase_13 AC 110 ms
40,940 KB
testcase_14 AC 97 ms
40,144 KB
testcase_15 AC 112 ms
41,176 KB
testcase_16 AC 99 ms
40,036 KB
testcase_17 AC 108 ms
40,896 KB
testcase_18 AC 104 ms
40,896 KB
testcase_19 AC 108 ms
40,948 KB
testcase_20 AC 99 ms
39,940 KB
testcase_21 AC 104 ms
40,180 KB
testcase_22 AC 103 ms
40,368 KB
testcase_23 AC 104 ms
40,340 KB
testcase_24 AC 102 ms
40,432 KB
testcase_25 AC 110 ms
40,748 KB
testcase_26 AC 97 ms
39,852 KB
testcase_27 AC 105 ms
41,124 KB
testcase_28 AC 107 ms
41,164 KB
testcase_29 AC 106 ms
40,948 KB
testcase_30 AC 96 ms
39,724 KB
testcase_31 AC 106 ms
41,160 KB
testcase_32 AC 136 ms
40,396 KB
testcase_33 AC 106 ms
41,352 KB
testcase_34 AC 93 ms
39,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final String[] inputs = sc.next().split(":");
		
		final int hour = Integer.parseInt(inputs[0]);
		final int minute = Integer.parseInt(inputs[1]);
		final long time = hour * 60 + minute;
		
		final long next_hour = ((time + 5) / 60) % 24;
		final long next_minute = (time + 5) % 60;
		
		System.out.printf("%02d:%02d\n", next_hour, next_minute);
		
	}
}
0