結果
問題 | No.2530 Yellow Cards |
ユーザー | tails |
提出日時 | 2023-11-03 23:35:16 |
言語 | cLay (20240104-1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 4,160 ms |
コンパイル使用メモリ | 175,864 KB |
実行使用メモリ | 105,500 KB |
最終ジャッジ日時 | 2023-11-03 23:35:25 |
合計ジャッジ時間 | 8,589 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 78 ms
105,500 KB |
testcase_01 | AC | 76 ms
101,128 KB |
testcase_02 | AC | 76 ms
101,128 KB |
testcase_03 | AC | 79 ms
101,128 KB |
testcase_04 | AC | 77 ms
101,128 KB |
testcase_05 | AC | 79 ms
101,128 KB |
testcase_06 | AC | 85 ms
101,128 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
ソースコード
#define MD 998244353 Mint d[5001][5002],z; d[0][0]=1; ll@n,@k; rep(e,k){ rep(x,e&1,n+1,2){ if(x) d[e+1][x-1]+=d[e][x]*x/n; d[e+1][x+1]+=d[e][x]*(n-x)/n; } } rep(x,k&1,n+1,2){ z+=d[e][x]*(n+(k-x)/2); } wt(z);