結果

問題 No.1844 Divisors Sum Sum
ユーザー ああいいああいい
提出日時 2022-02-18 21:44:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 513 ms / 3,000 ms
コード長 226 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 77,388 KB
最終ジャッジ日時 2023-09-11 18:50:08
合計ジャッジ時間 11,084 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 497 ms
77,284 KB
testcase_01 AC 508 ms
77,196 KB
testcase_02 AC 511 ms
77,388 KB
testcase_03 AC 507 ms
76,940 KB
testcase_04 AC 513 ms
77,280 KB
testcase_05 AC 509 ms
77,316 KB
testcase_06 AC 508 ms
77,340 KB
testcase_07 AC 511 ms
77,260 KB
testcase_08 AC 506 ms
77,192 KB
testcase_09 AC 512 ms
77,140 KB
testcase_10 AC 472 ms
77,308 KB
testcase_11 AC 181 ms
77,264 KB
testcase_12 AC 384 ms
77,112 KB
testcase_13 AC 143 ms
77,256 KB
testcase_14 AC 234 ms
77,196 KB
testcase_15 AC 74 ms
71,172 KB
testcase_16 AC 74 ms
70,960 KB
testcase_17 AC 73 ms
70,904 KB
testcase_18 AC 72 ms
71,336 KB
testcase_19 AC 74 ms
71,428 KB
testcase_20 AC 74 ms
71,136 KB
testcase_21 AC 75 ms
71,064 KB
testcase_22 AC 74 ms
71,404 KB
testcase_23 AC 74 ms
71,412 KB
testcase_24 AC 74 ms
71,308 KB
testcase_25 AC 75 ms
71,404 KB
testcase_26 AC 75 ms
71,196 KB
testcase_27 AC 74 ms
70,968 KB
testcase_28 AC 75 ms
71,228 KB
testcase_29 AC 77 ms
71,164 KB
testcase_30 AC 74 ms
71,132 KB
testcase_31 AC 76 ms
71,312 KB
testcase_32 AC 75 ms
71,352 KB
testcase_33 AC 75 ms
71,200 KB
testcase_34 AC 74 ms
71,020 KB
testcase_35 AC 75 ms
71,108 KB
testcase_36 AC 76 ms
71,392 KB
testcase_37 AC 74 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L = int(input())
mod = 10 ** 9 + 7
ans = 1
for i in range(L):
    p,e = map(int,input().split())
    inv = pow(p-1,mod-2,mod)
    tmp = pow(p,e+2,mod) - p - (p-1) * (e+1)
    ans = ans * tmp * inv % mod * inv % mod
print(ans)
0