結果

問題 No.216 FAC
コンテスト
ユーザー turner18_jp
提出日時 2017-12-08 21:24:29
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 235 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 56 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 13,440 KB
最終ジャッジ日時 2026-10-02 04:04:01
合計ジャッジ時間 2,946 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 3 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n = int(input())
score = list(map(int, input().split()))
player = list(map(int, input().split()))
current = [0]*n

for i in player:
  current[i] = current[i] + score[i]

if current[0] == max(current):
  print('YES')
else:
  print('NO')
0