結果

問題 No.2008 Super Worker
ユーザー googol_S0googol_S0
提出日時 2022-07-15 21:41:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 171,464 KB
最終ジャッジ日時 2023-09-10 01:04:10
合計ジャッジ時間 11,809 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 221 ms
89,068 KB
testcase_02 WA -
testcase_03 AC 219 ms
88,928 KB
testcase_04 WA -
testcase_05 AC 222 ms
88,976 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 219 ms
88,988 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
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()))
from decimal import *
getcontext().prec=50
X=[(Decimal(A[i])/Decimal(B[i]),A[i],B[i]) for i in range(N)]
X.sort(reverse=True)
ANS=0
V=1
mod=998244353
mod=10**9+7
for i in range(N):
  ANS=(ANS+V*A[i])%mod
  V=(V*B[i])%mod
print(ANS)
0