結果

問題 No.525 二度寝の季節
ユーザー bluemeganebluemegane
提出日時 2018-09-12 15:58:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 408 bytes
コンパイル時間 3,452 ms
コンパイル使用メモリ 100,912 KB
実行使用メモリ 23,200 KB
最終ジャッジ日時 2023-09-09 08:43:15
合計ジャッジ時間 7,085 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,124 KB
testcase_01 AC 64 ms
23,180 KB
testcase_02 AC 63 ms
19,056 KB
testcase_03 AC 63 ms
21,112 KB
testcase_04 AC 63 ms
21,128 KB
testcase_05 AC 63 ms
23,172 KB
testcase_06 AC 63 ms
21,148 KB
testcase_07 AC 63 ms
21,092 KB
testcase_08 AC 64 ms
21,148 KB
testcase_09 AC 63 ms
19,132 KB
testcase_10 AC 63 ms
23,184 KB
testcase_11 AC 63 ms
21,128 KB
testcase_12 AC 64 ms
21,220 KB
testcase_13 AC 63 ms
23,056 KB
testcase_14 AC 63 ms
19,076 KB
testcase_15 AC 64 ms
21,052 KB
testcase_16 AC 64 ms
21,168 KB
testcase_17 AC 63 ms
21,152 KB
testcase_18 AC 63 ms
23,080 KB
testcase_19 AC 63 ms
21,164 KB
testcase_20 AC 63 ms
23,008 KB
testcase_21 AC 63 ms
20,992 KB
testcase_22 AC 64 ms
23,012 KB
testcase_23 AC 64 ms
23,176 KB
testcase_24 AC 62 ms
21,120 KB
testcase_25 AC 64 ms
21,188 KB
testcase_26 AC 62 ms
21,068 KB
testcase_27 AC 62 ms
21,076 KB
testcase_28 AC 62 ms
23,128 KB
testcase_29 AC 62 ms
21,152 KB
testcase_30 AC 62 ms
21,032 KB
testcase_31 AC 63 ms
21,016 KB
testcase_32 AC 63 ms
21,240 KB
testcase_33 AC 63 ms
21,136 KB
testcase_34 AC 63 ms
23,200 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(':');
        var hh = int.Parse(line[0]);
        var mm = int.Parse(line[1]);
        var cf = false;
        mm += 5;
        if (mm >= 60) { mm -= 60; cf = true; }
        if (cf) hh++;
        if (hh == 24) hh = 0;
        Console.WriteLine("{0:00}:{1:00}", hh, mm);
    }
}
0