結果

問題 No.652 E869120 and TimeZone
ユーザー mencottonmencotton
提出日時 2018-03-12 14:32:19
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 646 bytes
コンパイル時間 5,646 ms
コンパイル使用メモリ 106,664 KB
実行使用メモリ 24,964 KB
最終ジャッジ日時 2023-09-07 01:59:49
合計ジャッジ時間 6,442 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
22,860 KB
testcase_01 AC 59 ms
22,864 KB
testcase_02 AC 58 ms
20,796 KB
testcase_03 AC 60 ms
20,864 KB
testcase_04 AC 60 ms
20,880 KB
testcase_05 AC 62 ms
21,068 KB
testcase_06 AC 61 ms
20,872 KB
testcase_07 AC 61 ms
21,064 KB
testcase_08 AC 62 ms
20,840 KB
testcase_09 AC 63 ms
22,836 KB
testcase_10 AC 61 ms
20,840 KB
testcase_11 AC 60 ms
20,800 KB
testcase_12 AC 61 ms
22,856 KB
testcase_13 AC 60 ms
20,832 KB
testcase_14 AC 60 ms
18,816 KB
testcase_15 WA -
testcase_16 AC 60 ms
20,848 KB
testcase_17 AC 59 ms
20,816 KB
testcase_18 AC 63 ms
20,792 KB
testcase_19 AC 59 ms
20,844 KB
testcase_20 AC 61 ms
20,996 KB
testcase_21 AC 60 ms
20,704 KB
testcase_22 AC 59 ms
22,832 KB
testcase_23 AC 60 ms
22,880 KB
testcase_24 AC 61 ms
18,852 KB
testcase_25 AC 60 ms
20,876 KB
testcase_26 AC 61 ms
20,832 KB
testcase_27 AC 60 ms
20,712 KB
testcase_28 AC 61 ms
20,712 KB
testcase_29 AC 62 ms
18,960 KB
testcase_30 AC 61 ms
22,908 KB
testcase_31 AC 63 ms
24,964 KB
testcase_32 AC 60 ms
20,808 KB
testcase_33 AC 58 ms
21,120 KB
testcase_34 AC 60 ms
22,792 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));
            int a = (int)(60 * x + 900);
            if (1 - (x % 1) < 0.01) a++;
            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