結果

問題 No.306 さいたま2008
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-03-29 22:59:28
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 856 ms
コンパイル使用メモリ 113,276 KB
実行使用メモリ 27,204 KB
最終ジャッジ日時 2024-04-10 05:54:36
合計ジャッジ時間 2,478 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
24,880 KB
testcase_01 AC 25 ms
26,636 KB
testcase_02 AC 27 ms
26,608 KB
testcase_03 AC 28 ms
26,960 KB
testcase_04 AC 26 ms
25,080 KB
testcase_05 AC 27 ms
26,820 KB
testcase_06 AC 27 ms
25,008 KB
testcase_07 AC 27 ms
24,564 KB
testcase_08 AC 26 ms
24,876 KB
testcase_09 AC 25 ms
24,568 KB
testcase_10 AC 25 ms
24,824 KB
testcase_11 AC 25 ms
26,824 KB
testcase_12 AC 26 ms
24,880 KB
testcase_13 AC 25 ms
24,700 KB
testcase_14 AC 26 ms
22,704 KB
testcase_15 AC 25 ms
24,696 KB
testcase_16 AC 27 ms
24,908 KB
testcase_17 AC 25 ms
24,908 KB
testcase_18 AC 27 ms
24,564 KB
testcase_19 AC 26 ms
24,692 KB
testcase_20 AC 26 ms
24,824 KB
testcase_21 AC 27 ms
24,744 KB
testcase_22 AC 26 ms
27,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
    public static void Main() {
        int[] a = IntArray();
        int[] b = IntArray();
        Console.WriteLine((a[0]*b[1]+a[1]*b[0])/(double)(a[0]+b[0]));
    }
    public static int[] IntArray() {
        return Array.ConvertAll(Console.ReadLine().Split(), delegate(string value) {
            return int.Parse(value);
        });
    }
}
0