結果

問題 No.2383 Naphthol
ユーザー tailstails
提出日時 2023-07-14 22:43:04
言語 cLay
(20240104-1)
結果
RE  
実行時間 -
コード長 462 bytes
コンパイル時間 5,174 ms
コンパイル使用メモリ 173,932 KB
実行使用メモリ 5,060 KB
最終ジャッジ日時 2023-10-14 12:59:58
合計ジャッジ時間 6,225 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 5 ms
4,868 KB
testcase_10 WA -
testcase_11 AC 5 ms
5,032 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 3 ms
4,352 KB
testcase_16 WA -
testcase_17 AC 1 ms
4,352 KB
testcase_18 RE -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Comb<Mint>c;
ll@n,@k;
Mint z=c.C(2n+4,k);
if(n%2==0){
	if(k%2==0){
		z+=c.C(n+2,k/2); // h
		z+=c.C(n+2,k/2); // v
		if(k%4==0){
			z+=c.C(n/2+1,k/4); // hv
		}
	}
}else{
	exit(2);
	if(k%2==0){
		z+=c.C(n+1,k/2);   // h00
		z+=c.C(n+1,k/2-1); // h11
		z+=c.C(n+2,k/2);   // v
		if(k%4==0){
			z+=c.C(n/2+1,k/4); // h00v
		}else{
			z+=c.C(n/2+1,k/4); // h11v
		}
	}else{
		z+=c.C(n+1,k/2);   // h01
		z+=c.C(n+1,k/2);   // h10
	}
}
wt(z/4);
0