結果

問題 No.216 FAC
ユーザー pypypymi
提出日時 2022-02-24 14:49:55
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 204 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 64,896 KB
最終ジャッジ日時 2024-07-02 12:41:11
合計ジャッジ時間 2,262 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
count = [0]*n
for i,j in enumerate(b):
    count[j]+=a[i]
print("YES") if count.index(max(count))==0 else print("NO")
0