結果

問題 No.236 鴛鴦茶
ユーザー qwrtpsfgqwrtpsfg
提出日時 2017-08-28 21:21:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 443 bytes
コンパイル時間 3,871 ms
コンパイル使用メモリ 103,524 KB
実行使用メモリ 25,780 KB
最終ジャッジ日時 2023-09-10 22:13:13
合計ジャッジ時間 5,037 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
23,680 KB
testcase_01 AC 68 ms
23,516 KB
testcase_02 AC 67 ms
23,640 KB
testcase_03 AC 67 ms
25,656 KB
testcase_04 AC 68 ms
21,708 KB
testcase_05 AC 67 ms
23,688 KB
testcase_06 AC 67 ms
23,728 KB
testcase_07 AC 68 ms
23,776 KB
testcase_08 AC 70 ms
23,692 KB
testcase_09 AC 69 ms
25,660 KB
testcase_10 AC 69 ms
25,780 KB
testcase_11 AC 68 ms
25,716 KB
testcase_12 AC 68 ms
25,728 KB
testcase_13 AC 68 ms
25,752 KB
testcase_14 AC 68 ms
23,528 KB
testcase_15 AC 68 ms
23,772 KB
testcase_16 AC 67 ms
23,568 KB
testcase_17 AC 68 ms
23,640 KB
testcase_18 AC 67 ms
23,716 KB
testcase_19 AC 67 ms
23,604 KB
testcase_20 AC 68 ms
23,628 KB
testcase_21 AC 68 ms
23,712 KB
testcase_22 AC 68 ms
25,752 KB
testcase_23 AC 68 ms
23,588 KB
testcase_24 AC 69 ms
23,704 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.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 + (x * b / a));
		}
    }
}

0