結果

問題 No.525 二度寝の季節
ユーザー funakoshifunakoshi
提出日時 2019-06-28 13:09:15
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 1,000 ms
コード長 671 bytes
コンパイル時間 1,990 ms
コンパイル使用メモリ 99,812 KB
実行使用メモリ 23,348 KB
最終ジャッジ日時 2023-09-14 21:20:57
合計ジャッジ時間 5,923 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
23,248 KB
testcase_01 AC 62 ms
21,176 KB
testcase_02 AC 61 ms
21,092 KB
testcase_03 AC 62 ms
21,176 KB
testcase_04 AC 61 ms
21,052 KB
testcase_05 AC 62 ms
23,216 KB
testcase_06 AC 62 ms
21,152 KB
testcase_07 AC 62 ms
23,236 KB
testcase_08 AC 62 ms
23,348 KB
testcase_09 AC 63 ms
19,192 KB
testcase_10 AC 62 ms
21,176 KB
testcase_11 AC 63 ms
19,060 KB
testcase_12 AC 62 ms
21,124 KB
testcase_13 AC 63 ms
23,132 KB
testcase_14 AC 62 ms
21,108 KB
testcase_15 AC 61 ms
21,036 KB
testcase_16 AC 63 ms
23,164 KB
testcase_17 AC 63 ms
23,268 KB
testcase_18 AC 61 ms
21,084 KB
testcase_19 AC 63 ms
23,144 KB
testcase_20 AC 62 ms
21,088 KB
testcase_21 AC 64 ms
23,232 KB
testcase_22 AC 64 ms
21,076 KB
testcase_23 AC 63 ms
21,084 KB
testcase_24 AC 63 ms
21,016 KB
testcase_25 AC 63 ms
23,204 KB
testcase_26 AC 63 ms
23,160 KB
testcase_27 AC 62 ms
21,208 KB
testcase_28 AC 63 ms
21,216 KB
testcase_29 AC 63 ms
23,244 KB
testcase_30 AC 62 ms
21,096 KB
testcase_31 AC 63 ms
19,072 KB
testcase_32 AC 62 ms
21,196 KB
testcase_33 AC 63 ms
21,188 KB
testcase_34 AC 62 ms
21,076 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;
using System.Text;
using System.Threading.Tasks;

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(':');
            int hour = int.Parse(input[0]);
            int min = int.Parse(input[1]);
            min = min + 5;
            if(min>59)
            {
                min = min - 60;
                hour++;
            }
            if(hour>23)
            {
                hour = hour - 24;
            }
            Console.WriteLine("{0:00}" + ":" + "{1:00}", hour, min);
        }
    }
}
0