結果

問題 No.236 鴛鴦茶
ユーザー qwrtpsfgqwrtpsfg
提出日時 2017-08-28 10:26:37
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 433 bytes
コンパイル時間 715 ms
コンパイル使用メモリ 111,868 KB
実行使用メモリ 30,208 KB
最終ジャッジ日時 2024-04-24 01:37:57
合計ジャッジ時間 2,284 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,732 KB
testcase_01 AC 31 ms
28,184 KB
testcase_02 AC 27 ms
28,052 KB
testcase_03 AC 26 ms
26,244 KB
testcase_04 AC 26 ms
27,920 KB
testcase_05 AC 25 ms
25,992 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 28 ms
26,000 KB
testcase_10 AC 27 ms
25,776 KB
testcase_11 WA -
testcase_12 AC 27 ms
25,876 KB
testcase_13 AC 25 ms
23,604 KB
testcase_14 AC 27 ms
28,040 KB
testcase_15 AC 27 ms
26,128 KB
testcase_16 AC 26 ms
28,036 KB
testcase_17 AC 27 ms
25,880 KB
testcase_18 AC 27 ms
26,132 KB
testcase_19 AC 28 ms
26,120 KB
testcase_20 AC 28 ms
24,116 KB
testcase_21 WA -
testcase_22 AC 27 ms
25,868 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Collections.Generic;

public class yukicoder
{
    public static void Main()
    {
		double[] input = Console.ReadLine().Split(' ').Select(c => double.Parse(c)).ToArray();
		double a = input[0];
		double b = input[1];
		double x = input[2];
		double y = input[3];
		
		if(x * b / a > y)
		{
			Console.WriteLine(y + (y * a / b));
		}
		else
		{
			Console.WriteLine(x + y);
		}
    }
}

0