結果

問題 No.236 鴛鴦茶
ユーザー qwrtpsfgqwrtpsfg
提出日時 2017-08-28 19:28:04
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 521 bytes
コンパイル時間 801 ms
コンパイル使用メモリ 112,760 KB
実行使用メモリ 28,304 KB
最終ジャッジ日時 2024-04-24 01:53:33
合計ジャッジ時間 2,377 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
25,900 KB
testcase_01 AC 27 ms
26,028 KB
testcase_02 AC 29 ms
26,256 KB
testcase_03 AC 30 ms
25,736 KB
testcase_04 AC 30 ms
26,028 KB
testcase_05 AC 29 ms
25,872 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 30 ms
26,260 KB
testcase_10 AC 31 ms
26,128 KB
testcase_11 WA -
testcase_12 AC 31 ms
27,916 KB
testcase_13 AC 31 ms
25,868 KB
testcase_14 AC 32 ms
28,036 KB
testcase_15 AC 30 ms
25,900 KB
testcase_16 AC 31 ms
23,856 KB
testcase_17 AC 31 ms
25,776 KB
testcase_18 AC 29 ms
26,000 KB
testcase_19 AC 28 ms
26,032 KB
testcase_20 AC 31 ms
26,028 KB
testcase_21 WA -
testcase_22 AC 28 ms
23,992 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