結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2015-08-04 22:34:43 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 1,000 ms |
| コード長 | 187 bytes |
| 記録 | |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 77,384 KB |
| 最終ジャッジ日時 | 2025-12-03 16:07:27 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = input()
score = [0 for i in range(101)]
for s,p in zip(map(int,raw_input().split(" ")),map(int,raw_input().split(" "))):
score[p] += s
print "YES" if score[0] >= max(score) else "NO"
Tawara