結果

問題 No.651 E869120 and Driving
ユーザー curryudon08curryudon08
提出日時 2021-02-28 22:52:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 430 bytes
コンパイル時間 827 ms
コンパイル使用メモリ 112,460 KB
実行使用メモリ 26,216 KB
最終ジャッジ日時 2024-04-12 10:57:36
合計ジャッジ時間 1,747 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
26,216 KB
testcase_01 AC 23 ms
23,852 KB
testcase_02 AC 24 ms
21,684 KB
testcase_03 AC 24 ms
23,920 KB
testcase_04 AC 24 ms
23,640 KB
testcase_05 AC 24 ms
25,952 KB
testcase_06 AC 24 ms
23,980 KB
testcase_07 AC 23 ms
21,684 KB
testcase_08 AC 23 ms
23,776 KB
testcase_09 AC 23 ms
23,896 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.Linq;

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

            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