結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
airis
|
| 提出日時 | 2015-05-26 22:25:55 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 215 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 77,684 KB |
| 最終ジャッジ日時 | 2025-12-03 15:16:31 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 RE * 7 |
ソースコード
n = input() a = map(int, raw_input().split()) b = map(int, raw_input().split()) score = [0] * (n + 5) for i in xrange(n): score[b[i]] += a[i] ans = score[0] if ans == max(score): print "YES" else: print "NO"
airis