結果

問題 No.652 E869120 and TimeZone
ユーザー mencottonmencotton
提出日時 2018-04-24 17:13:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 663 bytes
コンパイル時間 2,983 ms
コンパイル使用メモリ 102,672 KB
実行使用メモリ 23,032 KB
最終ジャッジ日時 2023-09-02 05:28:27
合計ジャッジ時間 5,203 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,880 KB
testcase_01 AC 58 ms
22,812 KB
testcase_02 AC 57 ms
20,992 KB
testcase_03 AC 58 ms
20,800 KB
testcase_04 AC 57 ms
21,036 KB
testcase_05 AC 56 ms
20,836 KB
testcase_06 AC 55 ms
22,876 KB
testcase_07 AC 57 ms
20,928 KB
testcase_08 AC 60 ms
22,936 KB
testcase_09 AC 56 ms
20,864 KB
testcase_10 AC 55 ms
20,852 KB
testcase_11 AC 55 ms
20,916 KB
testcase_12 AC 52 ms
18,912 KB
testcase_13 AC 55 ms
22,920 KB
testcase_14 AC 57 ms
20,928 KB
testcase_15 AC 55 ms
20,892 KB
testcase_16 AC 56 ms
21,036 KB
testcase_17 AC 58 ms
20,944 KB
testcase_18 AC 57 ms
20,892 KB
testcase_19 AC 54 ms
22,968 KB
testcase_20 AC 55 ms
21,036 KB
testcase_21 AC 55 ms
21,040 KB
testcase_22 AC 56 ms
20,916 KB
testcase_23 AC 58 ms
20,888 KB
testcase_24 AC 55 ms
20,900 KB
testcase_25 AC 57 ms
21,052 KB
testcase_26 AC 55 ms
20,772 KB
testcase_27 AC 56 ms
20,828 KB
testcase_28 AC 56 ms
20,840 KB
testcase_29 AC 54 ms
23,032 KB
testcase_30 AC 57 ms
20,864 KB
testcase_31 AC 55 ms
20,960 KB
testcase_32 AC 54 ms
20,896 KB
testcase_33 AC 55 ms
22,948 KB
testcase_34 AC 55 ms
23,028 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();
            var x = double.Parse(s[2].Substring(3, s[2].Length - 3));
            double a = 60 * x + 900;
            if (1 - (x % 1) < 0.001) a++;
            double time = int.Parse(s[0]) * 60 + int.Parse(s[1]); time += a;
            double hour = time / 60 % 24;
            if (hour < 10) Console.Write(0);
            Console.Write((int)hour + ":");
            double minute = time % 60;
            if (minute < 10) Console.Write(0);
            Console.WriteLine((int)minute);
        }
    }
}
0