結果

問題 No.652 E869120 and TimeZone
ユーザー mencottonmencotton
提出日時 2018-03-12 14:28:10
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 591 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 103,296 KB
実行使用メモリ 17,920 KB
最終ジャッジ日時 2024-04-25 08:07:11
合計ジャッジ時間 2,632 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 22 ms
17,792 KB
testcase_02 AC 20 ms
17,664 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 22 ms
17,792 KB
testcase_06 AC 21 ms
17,664 KB
testcase_07 AC 21 ms
17,408 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 20 ms
17,920 KB
testcase_13 AC 19 ms
17,664 KB
testcase_14 AC 20 ms
17,664 KB
testcase_15 WA -
testcase_16 AC 20 ms
17,792 KB
testcase_17 AC 21 ms
17,408 KB
testcase_18 AC 21 ms
17,408 KB
testcase_19 WA -
testcase_20 AC 21 ms
17,792 KB
testcase_21 AC 21 ms
17,920 KB
testcase_22 AC 21 ms
17,664 KB
testcase_23 WA -
testcase_24 AC 20 ms
17,664 KB
testcase_25 WA -
testcase_26 AC 21 ms
17,792 KB
testcase_27 WA -
testcase_28 AC 22 ms
17,792 KB
testcase_29 AC 23 ms
17,664 KB
testcase_30 AC 22 ms
17,920 KB
testcase_31 AC 21 ms
17,664 KB
testcase_32 AC 21 ms
17,920 KB
testcase_33 WA -
testcase_34 AC 21 ms
17,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace _652
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] s = Console.ReadLine().Split();
            int a = (int)(60 * (double.Parse(s[2].Substring(3,s[2].Length - 3)) + 0.01)) + 900;
            int time = int.Parse(s[0]) * 60 + int.Parse(s[1]); time += a;
            int hour = time / 60 % 24;
            if (hour < 10) Console.Write(0);
            Console.Write(hour + ":");
            int minute = time % 60;
            if (minute < 10) Console.Write(0);
            Console.WriteLine(minute);
        }
    }
}
0