結果

問題 No.2452 Incline
ユーザー hiro1729
提出日時 2023-09-01 22:38:58
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 124 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-01-03 10:05:50
合計ジャッジ時間 6,610 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
	n, m, l, r = map(int, input().split())
	print(((r - l) // (n - 1) + 1) * (m + 1) % 998244353)
0