結果

問題 No.216 FAC
コンテスト
ユーザー airis
提出日時 2015-05-26 22:30:09
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 94 ms / 1,000 ms
コード長 217 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 137 ms
コンパイル使用メモリ 77,344 KB
最終ジャッジ日時 2025-12-03 15:16:35
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n  = input()
a = map(int, raw_input().split())
b = map(int, raw_input().split())
score = [0] * (100 + 5)
for i in xrange(n):
  score[b[i]] += a[i]
ans = score[0]
if ans == max(score):
  print "YES"
else:
  print "NO"
0