結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
76,696 KB
testcase_01 WA -
testcase_02 AC 81 ms
76,792 KB
testcase_03 AC 81 ms
76,408 KB
testcase_04 AC 82 ms
76,704 KB
testcase_05 AC 80 ms
76,424 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 82 ms
76,620 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 82 ms
76,644 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 80 ms
76,604 KB
testcase_16 AC 80 ms
76,544 KB
testcase_17 AC 82 ms
76,472 KB
testcase_18 WA -
testcase_19 AC 80 ms
76,692 KB
testcase_20 AC 224 ms
77,124 KB
testcase_21 WA -
testcase_22 AC 204 ms
77,076 KB
testcase_23 WA -
testcase_24 AC 182 ms
76,656 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 221 ms
76,940 KB
testcase_29 AC 184 ms
76,604 KB
testcase_30 AC 144 ms
76,608 KB
testcase_31 AC 182 ms
76,656 KB
testcase_32 AC 183 ms
76,792 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 AC 131 ms
76,640 KB
testcase_37 WA -
testcase_38 AC 188 ms
76,804 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 206 ms
76,900 KB
testcase_42 AC 172 ms
76,596 KB
testcase_43 AC 209 ms
77,024 KB
testcase_44 AC 164 ms
76,680 KB
testcase_45 WA -
testcase_46 AC 153 ms
76,640 KB
testcase_47 AC 169 ms
76,600 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 AC 114 ms
76,724 KB
testcase_51 WA -
testcase_52 AC 123 ms
76,652 KB
testcase_53 WA -
testcase_54 AC 217 ms
76,856 KB
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 AC 138 ms
76,420 KB
testcase_59 AC 180 ms
76,576 KB
testcase_60 AC 222 ms
76,820 KB
権限があれば一括ダウンロードができます

ソースコード

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)):
    l=n//(i+1)+1
    r=n//i
    ans+=i*(r-l+1)
    ans+=i*(((r-l)*(r-l+1))//2)+(n%i)*(r-l+1)
    ans%=mod
print(ans)
0