結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
iad_2889
|
| 提出日時 | 2019-05-01 05:36:12 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 421 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 13,184 KB |
| 最終ジャッジ日時 | 2026-10-09 22:47:42 |
| 合計ジャッジ時間 | 2,267 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 RE * 7 |
ソースコード
N = int(input())
questions = [(int(x),int(y)) for x,y in zip(input().split(),input().split())]
score = sum([x[0] for x in questions if not x[1]])
participants_score = [0 for x in range(N)]
for question in [x for x in questions if x[1]]:
t_score,correcter = question
participants_score[correcter - 1]+=t_score
winners_score = max(participants_score)
is_won = score >= winners_score
print("YES" if is_won else "NO")
iad_2889