結果
| 問題 |
No.2792 Security Cameras on Young Diagram
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2024-06-22 07:46:32 |
| 言語 | cLay (20241019-1) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 2,000 ms |
| コード長 | 175 bytes |
| コンパイル時間 | 5,122 ms |
| コンパイル使用メモリ | 180,284 KB |
| 実行使用メモリ | 8,648 KB |
| 最終ジャッジ日時 | 2024-06-24 18:48:29 |
| 合計ジャッジ時間 | 5,923 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#define MD 998244353
ll@N,A[2N]{};A[0..N-1]=rd_ll();Comb<Mint>c;wt(sum[i,0,2N](sum[j,A[i],i?max(A[i]+1,A[i-1]):*A+1]((i&&A[i-1]>j)*c.C(j+i-1,j)+(i<N&&A[i]==j)*c.C(j-1+i,i))));