結果

問題 No.216 FAC
ユーザー otsuneko
提出日時 2021-05-07 10:46:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 224 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 82,004 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-09-14 23:26:54
合計ジャッジ時間 2,333 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))

score = [0]*101
for i in range(N):
    score[b[i]] += a[i]

if score[0] == max(score):
    print("YES")
else:
    print("NO")
0