結果

問題 No.216 FAC
ユーザー WatsonWatson
提出日時 2017-07-31 10:09:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 234 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-11 00:06:43
合計ジャッジ時間 1,806 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = [int(i) for i in input().split()]
b = [int(i) for i in input().split()]
c = []
for i in range(101):
    c.append(0)
for i in range(N):
    c[b[i]] += a[i]
if max(c) == c[0]:
    print("YES")
else:
    print("NO")
0