結果

問題 No.651 E869120 and Driving
ユーザー Crowea
提出日時 2019-01-22 14:38:02
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 418 bytes
コンパイル時間 2,482 ms
コンパイル使用メモリ 103,424 KB
実行使用メモリ 18,816 KB
最終ジャッジ日時 2024-09-15 13:33:32
合計ジャッジ時間 3,463 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 RE * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
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