結果

問題 No.216 FAC
ユーザー matrie
提出日時 2020-11-28 00:29:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 181 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-26 21:24:23
合計ジャッジ時間 1,953 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
p = list(map(int, input().split()))
s = list(map(int, input().split()))
m = [0] * 100
for i, p in enumerate(p):
	m[s[i]] += p
print("YES" if m[0]==max(m) else "NO")
0