結果

問題 No.1260 たくさんの多項式
ユーザー tanon710tanon710
提出日時 2020-10-17 01:56:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 608 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 77,376 KB
最終ジャッジ日時 2023-09-28 07:13:04
合計ジャッジ時間 11,215 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 75 ms
76,668 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 79 ms
76,524 KB
testcase_07 AC 77 ms
76,420 KB
testcase_08 AC 75 ms
76,596 KB
testcase_09 WA -
testcase_10 AC 77 ms
76,672 KB
testcase_11 AC 78 ms
76,572 KB
testcase_12 WA -
testcase_13 AC 80 ms
76,432 KB
testcase_14 AC 82 ms
76,768 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 79 ms
76,364 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 116 ms
76,488 KB
testcase_22 WA -
testcase_23 AC 177 ms
76,332 KB
testcase_24 WA -
testcase_25 AC 160 ms
76,648 KB
testcase_26 AC 176 ms
76,916 KB
testcase_27 AC 154 ms
76,560 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 162 ms
76,476 KB
testcase_34 AC 212 ms
76,992 KB
testcase_35 AC 142 ms
76,648 KB
testcase_36 WA -
testcase_37 AC 180 ms
76,740 KB
testcase_38 WA -
testcase_39 AC 214 ms
76,992 KB
testcase_40 AC 181 ms
76,596 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 159 ms
76,596 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 AC 95 ms
76,628 KB
testcase_49 AC 145 ms
76,460 KB
testcase_50 WA -
testcase_51 AC 210 ms
77,172 KB
testcase_52 WA -
testcase_53 AC 136 ms
76,596 KB
testcase_54 WA -
testcase_55 AC 220 ms
76,924 KB
testcase_56 AC 142 ms
76,512 KB
testcase_57 AC 175 ms
76,576 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod=10**9+7

n=int(input())
ans=0
for i in range(2,int(n**0.5)+1):
    tn=n
    while tn!=0:
        ans+=tn%i
        tn//=i
    ans%=mod
for i in range(1,int(n**0.5)+1):
    l=n//(i+1)+1
    r=n//i
    ans+=i*(r-l+1)
    ans+=i*(((r-l)*(r-l+1))//2)+(n%r)*(r-l+1)
    ans%=mod
print(ans)
0