結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-05 05:00:10 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 414 bytes |
| コンパイル時間 | 366 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-31 06:25:59 |
| 合計ジャッジ時間 | 2,266 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 24 |
ソースコード
n=int(input())
scores = list(map(int,input().split()))
winners = input().split()
if not 0 in winners:
print("No")
exit()
dict = {}
for i in range(n):
if not winners[i] in dict:
dict[winners[i]] = scores[i]
else:
dict[winners[i]] += scores[i]
K = dict["0"]
rank=[]
for key,value in dict.items():
rank.append(value)
if K >= max(rank):
print("YES")
else:
print("NO")