結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
14番
|
| 提出日時 | 2016-12-19 13:54:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 1,237 bytes |
| コンパイル時間 | 3,322 ms |
| コンパイル使用メモリ | 114,864 KB |
| 実行使用メモリ | 27,432 KB |
| 最終ジャッジ日時 | 2024-12-14 08:54:46 |
| 合計ジャッジ時間 | 4,654 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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();
}
}
14番