結果
問題 | No.216 FAC |
ユーザー |
|
提出日時 | 2022-10-24 13:58:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 210 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-02 16:38:52 |
合計ジャッジ時間 | 2,440 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
from collections import defaultdictdef main():N = int(input())scores = list(map(int, input().split()))solved = list(map(int, input().split()))score_estimated = {idx: 0 for idx in range(101)}for score, who in zip(scores, solved):score_estimated[who] += scoreif score_estimated[0] == max(score_estimated.values()):print("YES")else:print("NO")if __name__ == "__main__":main()