結果

問題 No.525 二度寝の季節
ユーザー fjafjafjafjafjafja
提出日時 2017-07-30 10:20:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 99 ms / 1,000 ms
コード長 718 bytes
コンパイル時間 4,070 ms
コンパイル使用メモリ 78,164 KB
実行使用メモリ 53,052 KB
最終ジャッジ日時 2024-04-19 05:52:28
合計ジャッジ時間 8,339 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
51,288 KB
testcase_01 AC 88 ms
51,488 KB
testcase_02 AC 99 ms
52,796 KB
testcase_03 AC 87 ms
51,216 KB
testcase_04 AC 90 ms
51,564 KB
testcase_05 AC 86 ms
51,220 KB
testcase_06 AC 84 ms
51,528 KB
testcase_07 AC 90 ms
53,052 KB
testcase_08 AC 96 ms
52,828 KB
testcase_09 AC 88 ms
53,032 KB
testcase_10 AC 85 ms
51,084 KB
testcase_11 AC 84 ms
51,048 KB
testcase_12 AC 83 ms
51,372 KB
testcase_13 AC 93 ms
51,568 KB
testcase_14 AC 84 ms
51,124 KB
testcase_15 AC 93 ms
51,380 KB
testcase_16 AC 92 ms
51,348 KB
testcase_17 AC 84 ms
50,944 KB
testcase_18 AC 96 ms
53,024 KB
testcase_19 AC 84 ms
51,464 KB
testcase_20 AC 86 ms
52,880 KB
testcase_21 AC 85 ms
51,424 KB
testcase_22 AC 84 ms
53,048 KB
testcase_23 AC 83 ms
51,176 KB
testcase_24 AC 82 ms
51,328 KB
testcase_25 AC 86 ms
52,992 KB
testcase_26 AC 85 ms
51,480 KB
testcase_27 AC 92 ms
51,316 KB
testcase_28 AC 84 ms
51,336 KB
testcase_29 AC 82 ms
51,300 KB
testcase_30 AC 83 ms
51,296 KB
testcase_31 AC 82 ms
50,832 KB
testcase_32 AC 88 ms
51,376 KB
testcase_33 AC 84 ms
51,484 KB
testcase_34 AC 99 ms
53,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class N525 {

	public static void main(String[] args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] s=str.split(":");
		Integer[] i=new Integer[2];
		for(int j=0;j<2;j++)
		{
			i[j]=Integer.parseInt(s[j]);
		}
		i[1]+=5;
		if(i[1]>=60)
		{
			i[1]-=60;
			i[0]+=1;
			if(i[0]>=24)
			{
				i[0]-=24;
			}
		}
		String[] ss=new String[2];
		for(int j=0;j<2;j++)
		{
			int e=0;
			e=(i[j]<10)?1:0;
			ss[j]=String.valueOf(i[j]);
			if(e==1){ss[j]="0"+ss[j];}
		}
		System.out.println(ss[0]+":"+ss[1]);


	}

}
0