結果

問題 No.216 FAC
ユーザー daku9640
提出日時 2016-10-10 07:15:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 205 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-22 00:45:45
合計ジャッジ時間 1,979 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = {i:0 for i in range(N)}
for i in range(N):
    C[B[i]] += A[i]
print("YES" if C[0] == max(C.values()) else "NO")
0