結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-24 14:32:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 451 bytes |
| 記録 | |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 20,948 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-16 16:14:08 |
| 合計ジャッジ時間 | 4,084 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 17 WA * 7 |
ソースコード
# coding=utf-8:
n = int(input())
q = list(map(int ,input().split()))
p = list(map(int, input().split()))
score = list()
o_score = 0
k_score = 0
for i, j in zip(q, p):
if j <= 1:
k_score += i
else:
score.append(i)
if len(score) == 0:
o_score = 0
elif len(score) == 1:
o_score = score[0]
else:
o_score = max(set(score))
#print(o_score)
#print(k_score)
if k_score >= o_score:
print("YES")
else:
print("NO")