結果

問題 No.450 ベー君のシャトルラン
ユーザー 14番14番
提出日時 2016-12-19 13:54:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 1,237 bytes
コンパイル時間 3,952 ms
コンパイル使用メモリ 107,000 KB
実行使用メモリ 24,036 KB
最終ジャッジ日時 2023-08-21 01:14:07
合計ジャッジ時間 6,503 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
21,880 KB
testcase_01 AC 67 ms
23,936 KB
testcase_02 AC 68 ms
21,924 KB
testcase_03 AC 68 ms
22,052 KB
testcase_04 AC 68 ms
22,124 KB
testcase_05 AC 68 ms
22,052 KB
testcase_06 AC 68 ms
21,936 KB
testcase_07 AC 68 ms
21,936 KB
testcase_08 AC 68 ms
22,120 KB
testcase_09 AC 68 ms
19,976 KB
testcase_10 AC 68 ms
24,036 KB
testcase_11 AC 68 ms
24,024 KB
testcase_12 AC 69 ms
22,040 KB
testcase_13 AC 67 ms
19,864 KB
testcase_14 AC 68 ms
24,016 KB
testcase_15 AC 68 ms
21,904 KB
testcase_16 AC 68 ms
19,972 KB
testcase_17 AC 68 ms
22,008 KB
testcase_18 AC 69 ms
24,036 KB
testcase_19 AC 69 ms
21,968 KB
testcase_20 AC 69 ms
23,956 KB
testcase_21 AC 67 ms
24,008 KB
testcase_22 AC 67 ms
23,936 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;
using System.Text;
using System.Collections.Generic;

public class Program
{
    public void Proc() {
        Reader.IsDebug = false;
        decimal[] inpt = Reader.ReadLine().Split(' ').Select(a=>decimal.Parse(a)).ToArray();
        this.V1 = inpt[0];
        this.V2 = inpt[1];
        this.D = decimal.Parse(Reader.ReadLine());
        this.W = decimal.Parse(Reader.ReadLine());
        decimal ans = D / (V1 + V2) * W;
        Console.WriteLine(ans);
    }

    private decimal V1;
    private decimal V2;

    private decimal D;
    private decimal W;


    public class Reader {
        public static bool IsDebug = true;
        private static System.IO.StringReader SReader;
        private static string InitText = @"


90 568
5019
870




";
        public static string ReadLine() {
            if(IsDebug) {
                if(SReader == null) {
                    SReader = new System.IO.StringReader(InitText.Trim());
                }
                return SReader.ReadLine();
            } else {
                return Console.ReadLine();
            }
        }

    }
    public static void Main(string[] args)
    {
        Program prg = new Program();
        prg.Proc();
    }
}
0