結果

問題 No.2230 Good Omen of White Lotus
ユーザー tailstails
提出日時 2023-02-24 22:55:11
言語 cLay
(20240104-1)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 6,749 ms
コンパイル使用メモリ 217,504 KB
実行使用メモリ 16,824 KB
最終ジャッジ日時 2023-10-11 06:45:17
合計ジャッジ時間 10,200 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 1 ms
4,352 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 2 ms
4,352 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 AC 2 ms
4,352 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 2 ms
4,352 KB
testcase_08 AC 1 ms
4,352 KB
testcase_09 AC 2 ms
4,352 KB
testcase_10 AC 1 ms
4,352 KB
testcase_11 AC 2 ms
4,352 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 1 ms
4,352 KB
testcase_14 AC 12 ms
9,196 KB
testcase_15 AC 1 ms
4,352 KB
testcase_16 AC 21 ms
12,624 KB
testcase_17 AC 21 ms
12,544 KB
testcase_18 AC 21 ms
12,620 KB
testcase_19 AC 22 ms
12,696 KB
testcase_20 AC 3 ms
4,348 KB
testcase_21 AC 2 ms
4,356 KB
testcase_22 AC 3 ms
4,352 KB
testcase_23 AC 4 ms
4,352 KB
testcase_24 AC 4 ms
7,528 KB
testcase_25 AC 4 ms
7,476 KB
testcase_26 AC 4 ms
7,536 KB
testcase_27 AC 32 ms
11,620 KB
testcase_28 AC 34 ms
11,584 KB
testcase_29 AC 20 ms
11,668 KB
testcase_30 AC 23 ms
11,632 KB
testcase_31 AC 34 ms
11,684 KB
testcase_32 AC 33 ms
11,580 KB
testcase_33 AC 51 ms
16,664 KB
testcase_34 AC 51 ms
16,664 KB
testcase_35 AC 51 ms
16,664 KB
testcase_36 AC 51 ms
16,824 KB
testcase_37 AC 51 ms
16,684 KB
testcase_38 AC 50 ms
16,664 KB
testcase_39 AC 52 ms
16,668 KB
testcase_40 AC 18 ms
10,136 KB
testcase_41 AC 13 ms
6,000 KB
testcase_42 AC 34 ms
13,580 KB
testcase_43 AC 4 ms
4,764 KB
testcase_44 AC 43 ms
14,208 KB
testcase_45 AC 14 ms
6,184 KB
testcase_46 AC 27 ms
11,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@h,@w,@n,@p,x[n],y[n];
rd((x--,y--)(n));
sortA(n,y,x);
segtree_Point_Maxval<ll> t;
t.malloc(h,1);
rep(i,n){
	ll v=t.getMaxVal(0,x[i]+1);
	t.change(x[i],v+1);
}
ll z=t.getMaxVal(0,h);
wt(1-(1-Mint(1)/p)**(h+w-3-z)*(1-Mint(2)/p)**z);
0