結果

問題 No.306 さいたま2008
ユーザー abL8ZLsTbF
提出日時 2016-03-29 22:59:28
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 852 ms
コンパイル使用メモリ 116,104 KB
実行使用メモリ 27,512 KB
最終ジャッジ日時 2025-02-14 12:12:57
合計ジャッジ時間 2,525 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます
コンパイルメッセージ
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