結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2017-10-22 17:19:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 654 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-21 13:48:22 |
合計ジャッジ時間 | 1,854 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 1 |
ソースコード
def main(): q_count = int(input()) scores = [int(i) for i in input().split()] answerers = [int(i) for i in input().split()] ans_scores = {} loop_count = 0 for i in answerers: ans_scores[i] = ans_scores.get(i, 0) + scores[loop_count] loop_count += 1 #print(ans_scores) topscore = 0 topscore_person = "" for person in ans_scores: if ans_scores[person] > topscore: topscore = ans_scores[person] topscore_person = person #print(topscore_person) if topscore_person == 0: print("YES") else: print("NO") if __name__ == '__main__': main()