結果
問題 |
No.2008 Super Worker
|
ユーザー |
|
提出日時 | 2022-07-17 11:08:52 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 135,176 KB |
最終ジャッジ日時 | 2024-06-29 12:30:41 |
合計ジャッジ時間 | 6,635 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 5 WA * 28 |
ソースコード
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)