結果
| 問題 |
No.1573 Divisor Function
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-28 10:39:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 82,336 KB |
| 実行使用メモリ | 67,796 KB |
| 最終ジャッジ日時 | 2024-06-25 12:04:50 |
| 合計ジャッジ時間 | 4,254 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 43 |
ソースコード
n,m=map(int,input().split())
a=0
b=998244353
s=0
def c(x):
s=(min(m+1,n//(x+1)+1)+min(m,n//x))*(min(m,n//x)-min(m,n//(x+1)))*499122177
s%=b
return (s*x*(x+3)*499122177)%b
for x in range(1,int(n**.5)+1):
a+=c(x)
a%=b
if n//x!=x :
a+=clac(n//x)
a%=b
print(a)