結果

問題 No.216 FAC
ユーザー miya145592miya145592
提出日時 2023-05-03 17:28:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 225 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 53,696 KB
最終ジャッジ日時 2024-05-01 14:52:14
合計ジャッジ時間 2,174 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,356 KB
testcase_01 AC 39 ms
52,196 KB
testcase_02 AC 39 ms
52,252 KB
testcase_03 AC 37 ms
52,904 KB
testcase_04 AC 36 ms
52,564 KB
testcase_05 AC 36 ms
51,876 KB
testcase_06 AC 36 ms
52,240 KB
testcase_07 AC 36 ms
52,068 KB
testcase_08 AC 37 ms
52,432 KB
testcase_09 AC 36 ms
52,248 KB
testcase_10 AC 37 ms
52,712 KB
testcase_11 AC 40 ms
52,248 KB
testcase_12 AC 35 ms
52,968 KB
testcase_13 AC 37 ms
52,444 KB
testcase_14 AC 36 ms
53,348 KB
testcase_15 AC 36 ms
52,548 KB
testcase_16 AC 36 ms
52,704 KB
testcase_17 AC 36 ms
53,136 KB
testcase_18 AC 36 ms
53,696 KB
testcase_19 AC 36 ms
53,336 KB
testcase_20 AC 35 ms
53,036 KB
testcase_21 AC 36 ms
52,460 KB
testcase_22 AC 37 ms
52,548 KB
testcase_23 AC 36 ms
53,588 KB
testcase_24 AC 39 ms
53,480 KB
testcase_25 AC 36 ms
52,832 KB
testcase_26 AC 36 ms
52,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
score = [0 for _ in range(101)]
for a, b in zip(A, B):
    score[b] += a
if score[0]==max(score):
    print("YES")
else:
    print("NO")
0