結果

問題 No.766 金魚すくい
ユーザー tailstails
提出日時 2018-12-14 01:00:00
言語 cLay
(20231016-1)
結果
AC  
実行時間 140 ms / 1,500 ms
コード長 265 bytes
コンパイル時間 2,939 ms
コンパイル使用メモリ 178,612 KB
実行使用メモリ 11,028 KB
最終ジャッジ日時 2023-09-19 00:14:25
合計ジャッジ時間 10,153 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
9,856 KB
testcase_01 AC 5 ms
9,788 KB
testcase_02 AC 5 ms
9,712 KB
testcase_03 AC 6 ms
9,840 KB
testcase_04 AC 5 ms
9,716 KB
testcase_05 AC 6 ms
9,716 KB
testcase_06 AC 5 ms
9,988 KB
testcase_07 AC 5 ms
9,720 KB
testcase_08 AC 5 ms
9,776 KB
testcase_09 AC 6 ms
9,776 KB
testcase_10 AC 6 ms
9,724 KB
testcase_11 AC 6 ms
9,776 KB
testcase_12 AC 6 ms
9,728 KB
testcase_13 AC 7 ms
9,720 KB
testcase_14 AC 8 ms
9,856 KB
testcase_15 AC 7 ms
9,796 KB
testcase_16 AC 8 ms
9,844 KB
testcase_17 AC 8 ms
9,744 KB
testcase_18 AC 7 ms
9,928 KB
testcase_19 AC 7 ms
10,000 KB
testcase_20 AC 7 ms
9,796 KB
testcase_21 AC 8 ms
9,736 KB
testcase_22 AC 8 ms
9,788 KB
testcase_23 AC 131 ms
10,700 KB
testcase_24 AC 133 ms
10,956 KB
testcase_25 AC 140 ms
11,028 KB
testcase_26 AC 134 ms
10,672 KB
testcase_27 AC 139 ms
10,820 KB
testcase_28 AC 133 ms
10,696 KB
testcase_29 AC 133 ms
10,716 KB
testcase_30 AC 135 ms
10,636 KB
testcase_31 AC 139 ms
10,848 KB
testcase_32 AC 133 ms
10,664 KB
testcase_33 AC 66 ms
10,684 KB
testcase_34 AC 67 ms
10,820 KB
testcase_35 AC 56 ms
9,860 KB
testcase_36 AC 54 ms
9,728 KB
testcase_37 AC 132 ms
10,788 KB
testcase_38 AC 133 ms
10,824 KB
testcase_39 AC 132 ms
10,808 KB
testcase_40 AC 129 ms
10,908 KB
testcase_41 AC 130 ms
10,548 KB
testcase_42 AC 128 ms
10,456 KB
testcase_43 AC 6 ms
9,780 KB
testcase_44 AC 6 ms
9,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,m,v[1d5];
mint p,q,r,s;

{
	combination_mint comb;
	comb.init(3d5);

	rd(n,m,p,v(n));
	std::sort(v,v+n);
	q=100-p;

	rep(i,n) r+=(p/100)**m * (q/100)**i * comb.C(m+i-1,i) * s, s+=v[n-i-1];
	rep(j,m) r+=(p/100)**j * (q/100)**n * comb.C(j+n-1,j) * s;

	wt(r);
}
0