結果

問題 No.652 E869120 and TimeZone
ユーザー mencotton
提出日時 2018-03-12 14:32:19
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 646 bytes
コンパイル時間 2,359 ms
コンパイル使用メモリ 103,680 KB
実行使用メモリ 18,432 KB
最終ジャッジ日時 2024-06-24 20:37:26
合計ジャッジ時間 4,210 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 29 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
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