結果

問題 No.2008 Super Worker
ユーザー achapiachapi
提出日時 2022-07-16 01:37:24
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 240 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 125,492 KB
最終ジャッジ日時 2023-09-10 08:23:01
合計ジャッジ時間 7,021 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
78,432 KB
testcase_01 AC 68 ms
71,248 KB
testcase_02 AC 69 ms
71,384 KB
testcase_03 AC 68 ms
71,532 KB
testcase_04 AC 69 ms
71,168 KB
testcase_05 AC 70 ms
71,356 KB
testcase_06 AC 70 ms
71,304 KB
testcase_07 AC 70 ms
71,440 KB
testcase_08 AC 70 ms
71,564 KB
testcase_09 AC 69 ms
71,356 KB
testcase_10 AC 68 ms
71,356 KB
testcase_11 AC 71 ms
71,452 KB
testcase_12 AC 70 ms
71,564 KB
testcase_13 AC 80 ms
76,816 KB
testcase_14 AC 82 ms
76,692 KB
testcase_15 AC 80 ms
76,688 KB
testcase_16 AC 82 ms
76,616 KB
testcase_17 AC 79 ms
76,756 KB
testcase_18 AC 105 ms
77,312 KB
testcase_19 AC 80 ms
75,792 KB
testcase_20 AC 89 ms
76,964 KB
testcase_21 AC 88 ms
76,740 KB
testcase_22 AC 81 ms
75,848 KB
testcase_23 TLE -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
s=[(a[i],b[i])for i in range(n)]
s.sort(lambda x:(x[1]-1)/x[0], reverse=True)
x=1
ans=0
mod=10**9+7
for a,b in s:
    ans+=a*x
    ans%=mod
    x*=b
print(ans)
0