結果

問題 No.1771 A DELETEQ
ユーザー tailstails
提出日時 2021-12-03 16:01:14
言語 cLay
(20240104-1)
結果
AC  
実行時間 45 ms / 3,500 ms
コード長 223 bytes
コンパイル時間 5,072 ms
コンパイル使用メモリ 177,588 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-19 07:50:05
合計ジャッジ時間 7,078 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 45 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 44 ms
4,376 KB
testcase_05 AC 44 ms
4,380 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,384 KB
testcase_09 AC 3 ms
4,376 KB
testcase_10 AC 4 ms
4,380 KB
testcase_11 AC 4 ms
4,388 KB
testcase_12 AC 5 ms
4,380 KB
testcase_13 AC 3 ms
4,376 KB
testcase_14 AC 11 ms
4,380 KB
testcase_15 AC 13 ms
4,376 KB
testcase_16 AC 22 ms
4,380 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 4 ms
4,380 KB
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 8 ms
4,380 KB
testcase_21 AC 2 ms
4,384 KB
testcase_22 AC 5 ms
4,380 KB
testcase_23 AC 5 ms
4,380 KB
testcase_24 AC 2 ms
4,380 KB
testcase_25 AC 2 ms
4,380 KB
testcase_26 AC 7 ms
4,376 KB
testcase_27 AC 3 ms
4,376 KB
testcase_28 AC 2 ms
4,380 KB
evil_hand_1.txt RE -
evil_hand_2.txt RE -
evil_hand_3.txt RE -
evil_random_1.txt RE -
evil_random_2.txt RE -
evil_random_3.txt RE -
evil_random_4.txt RE -
evil_random_5.txt RE -
evil_random_6.txt RE -
evil_random_7.txt RE -
evil_random_8.txt RE -
evil_random_9.txt RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Comb<Mint>c;
ll@x,@y;
if(x>4000||y>4000)exit(1);
Mint r;
rrep(z,min(x,y)+1){
	r*=x-z;
	r*=y-z;
	Mint s;
	rrep(w,z+1){
		s+=s;
		s+=c.fac((x-z)+(y-z)+w)*c.ifac(w);
	}
	r+=s;
}
wt(r*c.ifac(x)*c.ifac(y));
0