結果

問題 No.2474 Empty Quartz
ユーザー 👑 p-adicp-adic
提出日時 2023-09-17 21:19:08
言語 cLay
(20240104-1)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 4,532 ms
コンパイル使用メモリ 176,048 KB
実行使用メモリ 6,492 KB
最終ジャッジ日時 2023-09-17 21:19:14
合計ジャッジ時間 5,529 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 5 ms
4,488 KB
testcase_02 AC 6 ms
4,380 KB
testcase_03 AC 7 ms
4,724 KB
testcase_04 AC 10 ms
5,280 KB
testcase_05 AC 19 ms
6,440 KB
testcase_06 AC 20 ms
6,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@T;mint z;z.setmod(998244353);Comb<mint>c;rep(T){ll@++N,@K,d=N*N-4K,r=sqrt(d);wt((N+r)%2+d-r*r?z:c.C(N-1,(N+r)/2-1)+(r>0)*c.C(N-1,(N-r)/2-1));}
0