結果

問題 No.2452 Incline
ユーザー 👑 p-adicp-adic
提出日時 2023-08-20 10:57:59
言語 cLay
(20240104-1)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 2,460 ms
コンパイル使用メモリ 176,148 KB
実行使用メモリ 5,392 KB
最終ジャッジ日時 2023-08-28 09:08:57
合計ジャッジ時間 3,798 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 49 ms
5,392 KB
testcase_04 AC 45 ms
5,320 KB
testcase_05 AC 44 ms
5,328 KB
testcase_06 AC 43 ms
5,092 KB
testcase_07 AC 44 ms
5,268 KB
testcase_08 AC 40 ms
5,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@T,P=998244353;cerr<<T<<endl;
mint a,b,c,d;a.setmod(P);
rep(T){ll@--N,@M,@L,@R;a=R/N;b=-((M-L)/N);c=-((M-R)/N);d=L/N;wt(M*(c-b)+R*(a-c+1)+(P+1)/2*((d+b)*(d-b+1)-(a+c)*(a-c+1))*N-L*(d-b+1)+a-b+1);}
0