結果

問題 No.216 FAC
ユーザー JunOnumaJunOnuma
提出日時 2017-06-08 16:31:20
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 1,000 ms
コード長 212 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 13:29:30
合計ジャッジ時間 1,149 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
a = map(int, raw_input().split())
b = map(int, raw_input().split())
l = [0 for _ in range(101)]
for i in range(n):
    l[b[i]] += a[i]
if max(l) == l[0]:
    print 'YES'
else:
    print 'NO'
0