結果

問題 No.1993 Horse Racing
ユーザー 👑 kakel-sankakel-san
提出日時 2023-09-27 19:34:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 618 bytes
コンパイル時間 2,371 ms
コンパイル使用メモリ 67,744 KB
実行使用メモリ 25,572 KB
最終ジャッジ日時 2023-09-27 19:34:47
合計ジャッジ時間 5,261 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
25,572 KB
testcase_01 AC 67 ms
23,432 KB
testcase_02 AC 64 ms
21,616 KB
testcase_03 AC 65 ms
25,544 KB
testcase_04 AC 66 ms
23,600 KB
testcase_05 AC 66 ms
23,496 KB
testcase_06 AC 65 ms
23,568 KB
testcase_07 AC 66 ms
23,524 KB
testcase_08 AC 65 ms
23,556 KB
testcase_09 AC 63 ms
23,592 KB
testcase_10 AC 65 ms
23,592 KB
testcase_11 AC 65 ms
21,488 KB
testcase_12 AC 67 ms
25,400 KB
testcase_13 AC 65 ms
23,500 KB
testcase_14 AC 64 ms
23,432 KB
testcase_15 AC 67 ms
25,532 KB
testcase_16 AC 65 ms
23,536 KB
testcase_17 AC 66 ms
21,484 KB
testcase_18 AC 65 ms
23,544 KB
testcase_19 AC 65 ms
25,560 KB
testcase_20 AC 65 ms
23,532 KB
testcase_21 AC 64 ms
23,424 KB
testcase_22 AC 65 ms
23,376 KB
testcase_23 AC 66 ms
23,508 KB
testcase_24 AC 67 ms
23,428 KB
testcase_25 AC 67 ms
23,564 KB
testcase_26 AC 66 ms
21,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static int NN => int.Parse(ReadLine());
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var n = NN;
        var a = NList;
        var sp = 1.0;
        for (var i = 0; i < a.Length; ++i) sp *= (1000 - a[i]) / 1000.0;
        WriteLine(1000 - 1000 * sp);
    }
}
0