結果
問題 | No.2008 Super Worker |
ユーザー |
![]() |
提出日時 | 2022-07-15 23:59:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 353 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 145,416 KB |
最終ジャッジ日時 | 2024-06-27 21:44:33 |
合計ジャッジ時間 | 5,529 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 2 TLE * 1 -- * 12 |
ソースコード
N = int(input())A = list(map(int,input().split()))B = list(map(int,input().split()))mod = 10**9+7C = []for i,v in enumerate(A):tmp = int((B[i]-1)/A[i]*100000)C.append([tmp,i])C.sort()#print(C)level = 1ans = 0for i in range(len(C)-1,-1,-1):tmp1 = C[i][1]ans+=level*A[tmp1]ans%modlevel*=B[tmp1]print(ans%mod)