結果

問題 No.651 E869120 and Driving
ユーザー curryudon08curryudon08
提出日時 2021-02-28 22:47:38
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 658 ms
コンパイル使用メモリ 112,368 KB
実行使用メモリ 25,952 KB
最終ジャッジ日時 2024-04-12 10:57:05
合計ジャッジ時間 1,387 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
21,756 KB
testcase_01 AC 22 ms
25,952 KB
testcase_02 AC 21 ms
25,688 KB
testcase_03 AC 20 ms
21,680 KB
testcase_04 AC 19 ms
23,856 KB
testcase_05 AC 19 ms
23,664 KB
testcase_06 AC 20 ms
23,768 KB
testcase_07 AC 19 ms
21,944 KB
testcase_08 AC 18 ms
21,812 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

namespace _0651
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = int.Parse(Console.ReadLine());
            var t = (int)(a / 100.0 * 60);

            var dt = new DateTime(2021,1,1,10,0,0);
            var ts = new TimeSpan(t/60,t%60,0);
            dt += ts;

            Console.WriteLine(string.Format("{0}:{1:D2}",dt.Hour, dt.Minute));
        }
    }
}
0