結果

問題 No.2008 Super Worker
コンテスト
ユーザー ああいい
提出日時 2022-07-17 11:08:52
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 272 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 127 ms
コンパイル使用メモリ 85,484 KB
実行使用メモリ 130,696 KB
最終ジャッジ日時 2026-03-19 00:15:27
合計ジャッジ時間 5,212 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 5 WA * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
C = [(a,b) for a,b in zip(A,B)]
C.sort(key = lambda x:x[1],reverse = True)
P = 10 ** 9 + 7
ans = 0
now = 1
for a,b in C:
    ans += now * a
    ans %= P
    now = now * b % P
print(ans)
0