結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-18 09:28:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 1,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-07 19:56:34 |
| 合計ジャッジ時間 | 1,633 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
# No.216 FAC
n = int(input())
a = [int(i) for i in input().split()]
b = [int(i) for i in input().split()]
scores = [0] * 101
for i in range(n):
scores[b[i]] += a[i]
print('YES' if scores[0] >= max(scores[1:]) else 'NO')
fV9TwBhUoa9S3eV