結果

問題 No.652 E869120 and TimeZone
ユーザー iwkjoseciwkjosec
提出日時 2018-02-23 23:03:46
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 523 bytes
コンパイル時間 1,150 ms
コンパイル使用メモリ 112,756 KB
実行使用メモリ 26,460 KB
最終ジャッジ日時 2024-05-09 20:03:17
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
26,152 KB
testcase_01 AC 26 ms
26,280 KB
testcase_02 AC 26 ms
26,272 KB
testcase_03 AC 26 ms
24,364 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 26 ms
24,612 KB
testcase_08 AC 25 ms
24,352 KB
testcase_09 AC 26 ms
24,368 KB
testcase_10 AC 25 ms
26,148 KB
testcase_11 AC 26 ms
26,200 KB
testcase_12 AC 25 ms
24,236 KB
testcase_13 WA -
testcase_14 AC 26 ms
26,076 KB
testcase_15 WA -
testcase_16 AC 24 ms
26,220 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 22 ms
24,232 KB
testcase_21 AC 23 ms
24,236 KB
testcase_22 AC 26 ms
26,148 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 24 ms
24,532 KB
testcase_26 AC 23 ms
22,324 KB
testcase_27 AC 22 ms
24,368 KB
testcase_28 AC 25 ms
26,460 KB
testcase_29 AC 23 ms
24,240 KB
testcase_30 AC 24 ms
24,368 KB
testcase_31 AC 24 ms
24,288 KB
testcase_32 AC 22 ms
24,168 KB
testcase_33 AC 24 ms
24,496 KB
testcase_34 AC 22 ms
24,288 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 static System.Console;

class Program
{
    static void Main()
    {
        var abs = ReadLine().Split();
        var a = int.Parse(abs[0]);
        var b = int.Parse(abs[1]);
        var j = decimal.Parse(abs[2].Substring(3)) - 9;

        a += (int)Math.Floor(j);
        if(a<0)a+=24;
        if ((j - Math.Floor(j)) * 60 >= 60) a++;
        b += (int)((j - Math.Floor(j)) * 60) % 60;
        a %= 24;
        WriteLine($"{a:00}:{b:00}");
    }
}
0