結果

問題 No.2940 Sigma Sigma Div Floor Problem
ユーザー titia
提出日時 2024-10-18 22:11:16
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 235 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 67,456 KB
最終ジャッジ日時 2024-10-18 22:47:34
合計ジャッジ時間 10,638 ms
ジャッジサーバーID
(参考情報)
judge8 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 14 TLE * 1 -- * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

mod=998244353

N=int(input())

ANS=0

for i in range(1,N+1):
    now=1

    while now<=i:
        k=i//now
        nec=i//k+1

        ANS=(ANS+k*(nec-now))%mod

        now=nec

print(ANS)

    
0