結果
問題 | No.216 FAC |
ユーザー |
|
提出日時 | 2015-05-27 19:36:32 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-10-15 00:35:29 |
合計ジャッジ時間 | 1,197 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
# -*- coding:utf-8 -*-import sysif __name__ == "__main__":n = input()a = map(int,raw_input().split())b = map(int,raw_input().split())ans = [0 for i in xrange(101)]for i in xrange(n):temp_a, temp_b = a[i],b[i]ans[temp_b] += temp_aif ans[0] >= max(ans[1:]):print "YES"else:print "NO"