結果

問題 No.2383 Naphthol
ユーザー tailstails
提出日時 2023-07-19 17:27:49
言語 cLay
(20240104-1)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 5,515 ms
コンパイル使用メモリ 178,720 KB
実行使用メモリ 9,288 KB
最終ジャッジ日時 2023-10-19 20:03:58
合計ジャッジ時間 6,097 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,720 KB
testcase_01 AC 3 ms
7,720 KB
testcase_02 AC 3 ms
7,916 KB
testcase_03 AC 2 ms
7,720 KB
testcase_04 AC 2 ms
7,720 KB
testcase_05 AC 2 ms
7,720 KB
testcase_06 AC 2 ms
7,720 KB
testcase_07 AC 2 ms
7,720 KB
testcase_08 AC 2 ms
7,720 KB
testcase_09 AC 6 ms
9,288 KB
testcase_10 AC 6 ms
9,288 KB
testcase_11 AC 5 ms
9,288 KB
testcase_12 AC 5 ms
8,952 KB
testcase_13 AC 5 ms
9,000 KB
testcase_14 AC 5 ms
8,784 KB
testcase_15 AC 4 ms
8,536 KB
testcase_16 AC 5 ms
8,984 KB
testcase_17 AC 2 ms
7,772 KB
testcase_18 AC 5 ms
8,984 KB
testcase_19 AC 5 ms
8,896 KB
testcase_20 AC 6 ms
9,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@n,@k;
Mint z;
if(n==1){
	z=k==2||k==3||k==4?3:1;
}else{
	Comb<Mint>c;
	z=c.C(2n+4,k);
	if(k%2==0){
		z+=c.C(n+2,k/2)*3;
	}else if(n%2){
		z+=c.C(n+1,k/2)*2;
	}
	z/=4;
}
wt(z);
0