結果

問題 No.216 FAC
ユーザー vwxyz
提出日時 2022-08-05 23:33:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 251 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-15 21:20:20
合計ジャッジ時間 2,257 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

N=int(readline())
point=[0]*(N+1)
A=list(map(int,readline().split()))
B=list(map(int,readline().split()))
for a,b in zip(A,B):
    point[b]+=a
if max(point)==point[0]:
    ans="YES"
else:
    ans="NO"
print(ans)
0