結果

問題 No.1844 Divisors Sum Sum
ユーザー 👑 potato167potato167
提出日時 2021-12-07 03:33:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 539 ms / 3,000 ms
コード長 181 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 86,960 KB
実行使用メモリ 77,392 KB
最終ジャッジ日時 2023-09-21 16:31:13
合計ジャッジ時間 13,384 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 510 ms
77,112 KB
testcase_01 AC 504 ms
77,284 KB
testcase_02 AC 506 ms
77,280 KB
testcase_03 AC 529 ms
77,156 KB
testcase_04 AC 507 ms
77,248 KB
testcase_05 AC 534 ms
77,196 KB
testcase_06 AC 504 ms
77,204 KB
testcase_07 AC 530 ms
77,176 KB
testcase_08 AC 507 ms
77,280 KB
testcase_09 AC 539 ms
77,280 KB
testcase_10 AC 474 ms
77,392 KB
testcase_11 AC 182 ms
77,276 KB
testcase_12 AC 380 ms
77,344 KB
testcase_13 AC 139 ms
77,392 KB
testcase_14 AC 234 ms
77,176 KB
testcase_15 AC 71 ms
71,364 KB
testcase_16 AC 69 ms
71,216 KB
testcase_17 AC 69 ms
71,204 KB
testcase_18 AC 68 ms
71,288 KB
testcase_19 AC 73 ms
71,064 KB
testcase_20 AC 70 ms
71,188 KB
testcase_21 AC 69 ms
71,188 KB
testcase_22 AC 69 ms
70,920 KB
testcase_23 AC 69 ms
71,112 KB
testcase_24 AC 69 ms
71,204 KB
testcase_25 AC 70 ms
71,112 KB
testcase_26 AC 69 ms
71,188 KB
testcase_27 AC 69 ms
71,288 KB
testcase_28 AC 70 ms
71,416 KB
testcase_29 AC 69 ms
71,284 KB
testcase_30 AC 68 ms
71,440 KB
testcase_31 AC 69 ms
71,228 KB
testcase_32 AC 70 ms
71,384 KB
testcase_33 AC 70 ms
71,128 KB
testcase_34 AC 71 ms
71,352 KB
testcase_35 AC 69 ms
71,040 KB
testcase_36 AC 69 ms
71,312 KB
testcase_37 AC 73 ms
71,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=10**9+7
L=int(input())
ans=1
for i in range(L):
	P,e=map(int,input().split())
	R=pow(P-1,M-2,M)
	X=pow(P,e,M)
	ans*=(R*(((X*P)%M+(P*R*(X-1))-(e+1))%M))%M
	ans%=M
print((ans+M)%M)
0