結果

問題 No.525 二度寝の季節
ユーザー pirorirori_n712pirorirori_n712
提出日時 2018-06-13 01:56:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 414 bytes
コンパイル時間 1,872 ms
コンパイル使用メモリ 100,068 KB
実行使用メモリ 22,852 KB
最終ジャッジ日時 2023-09-13 03:47:54
合計ジャッジ時間 5,355 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
18,836 KB
testcase_01 AC 61 ms
20,828 KB
testcase_02 AC 57 ms
20,824 KB
testcase_03 AC 58 ms
18,692 KB
testcase_04 AC 58 ms
20,936 KB
testcase_05 AC 58 ms
18,692 KB
testcase_06 AC 61 ms
20,936 KB
testcase_07 AC 58 ms
20,908 KB
testcase_08 AC 57 ms
20,792 KB
testcase_09 AC 57 ms
20,848 KB
testcase_10 AC 58 ms
22,780 KB
testcase_11 AC 57 ms
18,696 KB
testcase_12 AC 60 ms
20,676 KB
testcase_13 AC 57 ms
18,800 KB
testcase_14 AC 58 ms
20,856 KB
testcase_15 AC 57 ms
20,712 KB
testcase_16 AC 58 ms
22,848 KB
testcase_17 AC 58 ms
20,756 KB
testcase_18 AC 58 ms
22,852 KB
testcase_19 AC 57 ms
20,840 KB
testcase_20 AC 57 ms
18,712 KB
testcase_21 AC 57 ms
20,744 KB
testcase_22 AC 58 ms
22,852 KB
testcase_23 AC 58 ms
20,824 KB
testcase_24 AC 58 ms
20,744 KB
testcase_25 AC 58 ms
22,780 KB
testcase_26 AC 58 ms
20,928 KB
testcase_27 AC 57 ms
20,796 KB
testcase_28 AC 57 ms
18,824 KB
testcase_29 AC 57 ms
22,788 KB
testcase_30 AC 57 ms
18,764 KB
testcase_31 AC 57 ms
18,756 KB
testcase_32 AC 58 ms
20,788 KB
testcase_33 AC 57 ms
20,788 KB
testcase_34 AC 57 ms
20,932 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class No525{
    static void Main(){
        var h=Console.ReadLine().Split(':');
        int[] i={Int32.Parse(h[0]),Int32.Parse(h[1])};
        i[1]+=5;
        if(i[1]>59){
            i[1]-=60;
            if(i[0]==23)i[0]=0;
            else i[0]+=1;
        }
        var m=i[0]<10?$"0{i[0]}":$"{i[0]}";
        var s=i[1]<10?$"0{i[1]}":$"{i[1]}";
        Console.WriteLine($"{m}:{s}");
    }
}
0