結果

問題 No.216 FAC
ユーザー utsumidaisuke
提出日時 2017-03-11 11:47:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 255 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-24 12:01:18
合計ジャッジ時間 2,097 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 RE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
point = list(map(int, input().split()))
player = list(map(int, input().split()))

score = [0 for i in range(100)]
for pt, pl in zip(point, player):
    score[pl] += pt

if score[0] >= max(score[1:]):
    print('YES')
else:
    print('NO')
0