結果

問題 No.1844 Divisors Sum Sum
ユーザー googol_S0googol_S0
提出日時 2022-02-18 21:24:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 564 ms / 3,000 ms
コード長 231 bytes
コンパイル時間 644 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 98,316 KB
最終ジャッジ日時 2023-09-11 18:29:10
合計ジャッジ時間 12,595 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 537 ms
98,124 KB
testcase_01 AC 564 ms
98,068 KB
testcase_02 AC 560 ms
98,168 KB
testcase_03 AC 558 ms
98,156 KB
testcase_04 AC 558 ms
97,916 KB
testcase_05 AC 553 ms
98,112 KB
testcase_06 AC 557 ms
98,228 KB
testcase_07 AC 560 ms
98,180 KB
testcase_08 AC 558 ms
98,316 KB
testcase_09 AC 564 ms
98,056 KB
testcase_10 AC 523 ms
96,324 KB
testcase_11 AC 195 ms
81,812 KB
testcase_12 AC 419 ms
90,808 KB
testcase_13 AC 148 ms
78,160 KB
testcase_14 AC 253 ms
83,548 KB
testcase_15 AC 73 ms
71,004 KB
testcase_16 AC 73 ms
71,120 KB
testcase_17 AC 74 ms
71,192 KB
testcase_18 AC 74 ms
71,344 KB
testcase_19 AC 73 ms
71,216 KB
testcase_20 AC 75 ms
71,012 KB
testcase_21 AC 73 ms
71,188 KB
testcase_22 AC 73 ms
71,392 KB
testcase_23 AC 75 ms
71,168 KB
testcase_24 AC 74 ms
70,996 KB
testcase_25 AC 74 ms
71,412 KB
testcase_26 AC 74 ms
71,012 KB
testcase_27 AC 78 ms
71,364 KB
testcase_28 AC 75 ms
71,432 KB
testcase_29 AC 74 ms
71,384 KB
testcase_30 AC 74 ms
71,216 KB
testcase_31 AC 75 ms
71,312 KB
testcase_32 AC 73 ms
71,220 KB
testcase_33 AC 75 ms
71,168 KB
testcase_34 AC 75 ms
71,128 KB
testcase_35 AC 74 ms
71,248 KB
testcase_36 AC 76 ms
71,308 KB
testcase_37 AC 74 ms
71,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
X=[list(map(int,input().split())) for i in range(N)]
mod=10**9+7
ANS=1
for i in range(N):
  ANS=ANS*-((-pow(X[i][0],X[i][1]+2,mod)+X[i][1]*(X[i][0]-1)+2*X[i][0]-1)%mod*pow(X[i][0]-1,(mod-2)*2,mod)%mod)%mod
print(ANS)
0