結果

問題 No.525 二度寝の季節
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 16:05:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 543 bytes
コンパイル時間 2,018 ms
コンパイル使用メモリ 97,148 KB
実行使用メモリ 23,140 KB
最終ジャッジ日時 2023-09-25 13:35:54
合計ジャッジ時間 5,931 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
23,044 KB
testcase_01 AC 64 ms
20,980 KB
testcase_02 AC 64 ms
21,092 KB
testcase_03 AC 64 ms
21,052 KB
testcase_04 AC 63 ms
21,152 KB
testcase_05 AC 64 ms
21,000 KB
testcase_06 AC 63 ms
21,176 KB
testcase_07 AC 63 ms
21,156 KB
testcase_08 AC 63 ms
20,988 KB
testcase_09 AC 64 ms
23,036 KB
testcase_10 AC 62 ms
21,080 KB
testcase_11 AC 63 ms
21,156 KB
testcase_12 AC 63 ms
23,052 KB
testcase_13 AC 64 ms
21,068 KB
testcase_14 AC 64 ms
22,984 KB
testcase_15 AC 64 ms
23,120 KB
testcase_16 AC 63 ms
19,028 KB
testcase_17 AC 64 ms
21,240 KB
testcase_18 AC 64 ms
21,232 KB
testcase_19 AC 64 ms
21,016 KB
testcase_20 AC 64 ms
21,024 KB
testcase_21 AC 64 ms
23,140 KB
testcase_22 AC 64 ms
23,092 KB
testcase_23 AC 63 ms
21,036 KB
testcase_24 AC 64 ms
21,080 KB
testcase_25 AC 63 ms
21,172 KB
testcase_26 AC 64 ms
21,024 KB
testcase_27 AC 63 ms
20,988 KB
testcase_28 AC 63 ms
21,112 KB
testcase_29 AC 64 ms
21,000 KB
testcase_30 AC 63 ms
23,036 KB
testcase_31 AC 63 ms
21,000 KB
testcase_32 AC 62 ms
21,048 KB
testcase_33 AC 63 ms
19,108 KB
testcase_34 AC 63 ms
23,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    public void Solve()
    {
        string[] T = Console.ReadLine().Split(':');
        int minute = int.Parse(T[1]) + 5;
        int hour = int.Parse(T[0]);

        if (60 <= minute)
        {
            hour += 1;
            minute -= 60;
        }
        if (24 <= hour) { hour -= 24; }

        Console.WriteLine("{0:00}:{1:00}", hour, minute);
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0