結果

問題 No.216 FAC
ユーザー 🍡yurahuna
提出日時 2016-01-24 09:08:20
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 243 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-21 15:09:18
合計ジャッジ時間 1,734 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

MAX_N = 100
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
score = [0 for _ in range(MAX_N)]
for i in range(n):
    score[b[i]] += a[i]
if score[0] >= max(score):
    print('YES')
else:
    print('NO')
0