結果

問題 No.236 鴛鴦茶
ユーザー mbanmban
提出日時 2016-11-05 11:48:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 459 bytes
コンパイル時間 3,538 ms
コンパイル使用メモリ 101,312 KB
実行使用メモリ 25,840 KB
最終ジャッジ日時 2023-09-10 22:08:20
合計ジャッジ時間 6,020 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
25,796 KB
testcase_01 AC 69 ms
23,916 KB
testcase_02 AC 67 ms
23,720 KB
testcase_03 AC 66 ms
23,824 KB
testcase_04 AC 67 ms
25,748 KB
testcase_05 AC 66 ms
21,580 KB
testcase_06 AC 66 ms
23,648 KB
testcase_07 AC 66 ms
23,800 KB
testcase_08 AC 66 ms
23,684 KB
testcase_09 AC 65 ms
23,576 KB
testcase_10 AC 66 ms
25,772 KB
testcase_11 AC 67 ms
23,672 KB
testcase_12 AC 69 ms
23,712 KB
testcase_13 AC 66 ms
23,704 KB
testcase_14 AC 66 ms
23,784 KB
testcase_15 AC 67 ms
23,696 KB
testcase_16 AC 66 ms
23,764 KB
testcase_17 AC 66 ms
23,740 KB
testcase_18 AC 67 ms
23,628 KB
testcase_19 AC 66 ms
23,696 KB
testcase_20 AC 66 ms
23,716 KB
testcase_21 AC 66 ms
25,752 KB
testcase_22 AC 66 ms
25,752 KB
testcase_23 AC 65 ms
23,712 KB
testcase_24 AC 69 ms
25,840 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class Magatro
{
    static void Main()
    {
        double[] q = Console.ReadLine().Split(' ').Select(s => double.Parse(s)).ToArray();
       double X, Y;
        double A, B,P;
        P = q[0] + q[1];
        A = (q[0])/P;
        B = (q[1])/P;
        X = q[2];
        Y = q[3];
       Console.WriteLine(Math.Min( X / A ,Y / B));
    }
}
0