結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-19 16:47:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 1,000 ms |
| コード長 | 349 bytes |
| 記録 | |
| コンパイル時間 | 822 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,484 KB |
| 最終ジャッジ日時 | 2026-04-21 04:18:27 |
| 合計ジャッジ時間 | 4,617 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
input()
point_list = list(map(int,input().split()))
solved_list = list(map(int,input().split()))
myPoint=0
othersPoint=[0 for x in range(101)]
for p,s in zip(point_list,solved_list):
if s == 0:
myPoint = myPoint+p
else:
othersPoint[s] = othersPoint[s]+p
if myPoint>=max(othersPoint):
print("YES")
else:
print("NO")