結果

問題 No.216 FAC
コンテスト
ユーザー pypypymi
提出日時 2022-02-24 14:49:55
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 204 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 191 ms
コンパイル使用メモリ 85,632 KB
実行使用メモリ 65,408 KB
最終ジャッジ日時 2026-03-23 20:34:05
合計ジャッジ時間 2,226 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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