結果

問題 No.216 FAC
ユーザー ABKZABKZ
提出日時 2021-07-14 08:16:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 255 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 75,852 KB
最終ジャッジ日時 2023-09-16 05:28:29
合計ジャッジ時間 3,540 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,568 KB
testcase_01 AC 71 ms
71,552 KB
testcase_02 AC 70 ms
71,536 KB
testcase_03 AC 75 ms
75,548 KB
testcase_04 AC 78 ms
75,648 KB
testcase_05 AC 73 ms
75,636 KB
testcase_06 AC 72 ms
71,484 KB
testcase_07 AC 70 ms
71,476 KB
testcase_08 AC 72 ms
71,440 KB
testcase_09 AC 72 ms
71,368 KB
testcase_10 AC 71 ms
71,368 KB
testcase_11 AC 71 ms
71,624 KB
testcase_12 AC 69 ms
71,368 KB
testcase_13 AC 70 ms
71,324 KB
testcase_14 AC 72 ms
71,644 KB
testcase_15 AC 69 ms
71,552 KB
testcase_16 AC 75 ms
75,628 KB
testcase_17 AC 73 ms
75,552 KB
testcase_18 AC 75 ms
75,616 KB
testcase_19 AC 75 ms
75,500 KB
testcase_20 AC 76 ms
75,676 KB
testcase_21 AC 75 ms
75,712 KB
testcase_22 AC 76 ms
75,608 KB
testcase_23 AC 74 ms
75,556 KB
testcase_24 AC 74 ms
75,588 KB
testcase_25 AC 75 ms
75,852 KB
testcase_26 AC 71 ms
71,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
score = list(map(int, input().split()))
winner = list(map(int, input().split()))

result = [sum([b for a, b in list(zip(winner, score)) if a == i]) for i in range(101)]

if result[0] >= max(result):
    print("YES")
else:
    print("NO")
0