結果

問題 No.651 E869120 and Driving
ユーザー CroweaCrowea
提出日時 2019-01-22 14:38:02
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 418 bytes
コンパイル時間 5,293 ms
コンパイル使用メモリ 104,384 KB
実行使用メモリ 24,764 KB
最終ジャッジ日時 2023-10-13 17:40:52
合計ジャッジ時間 3,640 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
24,732 KB
testcase_01 AC 68 ms
24,748 KB
testcase_02 AC 70 ms
24,604 KB
testcase_03 AC 70 ms
22,864 KB
testcase_04 AC 70 ms
22,792 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 69 ms
24,764 KB
testcase_08 AC 69 ms
22,604 KB
testcase_09 AC 70 ms
24,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    const int speed = 100;
    const int departTime = 10;
    static void Main(string[] args)
    {
        var dist = double.Parse(Console.ReadLine());
        string[] elapsed = (dist / speed).ToString().Split('.');
        int hour = departTime + int.Parse(elapsed[0]);
        int min = (int.Parse(elapsed[1]) * 60) / 10;
        Console.WriteLine("{0}:{1:D2}", hour, min);
    }
}

0