結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
kutsutama
|
| 提出日時 | 2018-12-18 17:36:26 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,520 KB |
| 最終ジャッジ日時 | 2026-04-12 12:18:32 |
| 合計ジャッジ時間 | 4,077 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
n = int(input())
a = [int(x) for x in input().split()]
b = [int(x) for x in input().split()]
score = [0] * 101
for i in range(n):
score[b[i]] += a[i]
if score[0] >= max(score[1:]):
print('YES')
else:
print('NO')
kutsutama