結果

問題 No.2568 列辞書順列列
ユーザー tailstails
提出日時 2024-04-24 10:28:07
言語 cLay
(20240104-1)
結果
AC  
実行時間 24 ms / 3,000 ms
コード長 118 bytes
コンパイル時間 4,507 ms
コンパイル使用メモリ 174,736 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-04-24 10:28:16
合計ジャッジ時間 6,730 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 6 ms
5,376 KB
testcase_03 AC 5 ms
5,376 KB
testcase_04 AC 13 ms
5,888 KB
testcase_05 AC 14 ms
5,888 KB
testcase_06 AC 13 ms
5,888 KB
testcase_07 AC 14 ms
5,888 KB
testcase_08 AC 14 ms
5,888 KB
testcase_09 AC 17 ms
6,016 KB
testcase_10 AC 17 ms
6,016 KB
testcase_11 AC 18 ms
6,016 KB
testcase_12 AC 23 ms
6,144 KB
testcase_13 AC 23 ms
6,272 KB
testcase_14 AC 24 ms
6,272 KB
testcase_15 AC 24 ms
6,272 KB
testcase_16 AC 23 ms
6,144 KB
testcase_17 AC 22 ms
6,272 KB
testcase_18 AC 23 ms
6,272 KB
testcase_19 AC 21 ms
6,272 KB
testcase_20 AC 22 ms
6,144 KB
testcase_21 AC 22 ms
6,272 KB
testcase_22 AC 22 ms
6,272 KB
testcase_23 AC 23 ms
6,272 KB
testcase_24 AC 23 ms
6,144 KB
testcase_25 AC 23 ms
6,272 KB
testcase_26 AC 22 ms
6,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@N,@M,@Q;Mint m=M,B[N+1];B[1..N]=B[0..]*m+rd_ll()-1;rep(Q){ll@--l,@r;wt(B[r]-B[l]*m**(r-l)+1);}
0