結果

問題 No.2452 Incline
ユーザー tailstails
提出日時 2023-09-04 14:05:53
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 5,686 ms
コンパイル使用メモリ 173,272 KB
実行使用メモリ 5,456 KB
最終ジャッジ日時 2023-09-04 14:06:01
合計ジャッジ時間 5,904 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 26 ms
5,032 KB
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll n;
Mint f(ll x){
	ll q=x/n;
	return q*(n*(q-1)/2+x%n+1);
}
{
	ll@t;
	rep(t){
		rd(n--);
		ll@m,@l--,@r;
		wt(f(r)-f(l)+f(m+~l)-f(m+~r)+r-l);
	}
}
0