結果

問題 No.652 E869120 and TimeZone
ユーザー bluemeganebluemegane
提出日時 2021-05-20 06:51:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 530 bytes
コンパイル時間 1,185 ms
コンパイル使用メモリ 65,096 KB
実行使用メモリ 23,468 KB
最終ジャッジ日時 2023-09-02 05:37:48
合計ジャッジ時間 4,848 ms
ジャッジサーバーID
(参考情報)
judge16 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
23,400 KB
testcase_01 AC 72 ms
23,288 KB
testcase_02 AC 71 ms
21,220 KB
testcase_03 AC 70 ms
21,196 KB
testcase_04 AC 70 ms
21,364 KB
testcase_05 AC 70 ms
21,188 KB
testcase_06 AC 69 ms
23,468 KB
testcase_07 AC 69 ms
21,260 KB
testcase_08 AC 69 ms
19,392 KB
testcase_09 AC 69 ms
21,248 KB
testcase_10 AC 69 ms
19,300 KB
testcase_11 AC 68 ms
21,188 KB
testcase_12 AC 69 ms
21,264 KB
testcase_13 AC 70 ms
21,440 KB
testcase_14 AC 70 ms
23,300 KB
testcase_15 AC 70 ms
21,380 KB
testcase_16 AC 69 ms
21,280 KB
testcase_17 AC 69 ms
21,284 KB
testcase_18 AC 69 ms
21,264 KB
testcase_19 AC 70 ms
21,360 KB
testcase_20 AC 69 ms
21,408 KB
testcase_21 AC 69 ms
21,304 KB
testcase_22 AC 72 ms
23,312 KB
testcase_23 AC 69 ms
21,432 KB
testcase_24 AC 69 ms
21,428 KB
testcase_25 AC 68 ms
21,264 KB
testcase_26 AC 68 ms
19,344 KB
testcase_27 AC 69 ms
21,332 KB
testcase_28 AC 69 ms
19,256 KB
testcase_29 AC 68 ms
19,328 KB
testcase_30 AC 69 ms
21,264 KB
testcase_31 AC 69 ms
21,244 KB
testcase_32 AC 70 ms
21,256 KB
testcase_33 AC 71 ms
21,460 KB
testcase_34 AC 70 ms
21,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var a = int.Parse(line[0]);
        var b = int.Parse(line[1]);
        var c = (int)(decimal.Parse(line[2].Replace("UTC", "")) * 60m) - 540;
        getAns(a, b, c);
    }
    static void getAns(int a, int b, int c)
    {
        var dt = new DateTime(2000, 1, 1, a, b, 0);
        var dt2 = dt + new TimeSpan(0, c, 0);
        Console.WriteLine("{0:00}:{1:00}", dt2.Hour, dt2.Minute);
    }
}
0