結果

問題 No.216 FAC
ユーザー hiro1729hiro1729
提出日時 2023-09-10 20:40:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 1,270 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 71,464 KB
最終ジャッジ日時 2023-09-10 20:40:12
合計ジャッジ時間 4,610 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,956 KB
testcase_01 AC 71 ms
71,172 KB
testcase_02 AC 71 ms
71,336 KB
testcase_03 AC 70 ms
71,280 KB
testcase_04 AC 70 ms
71,420 KB
testcase_05 AC 70 ms
71,440 KB
testcase_06 AC 70 ms
71,120 KB
testcase_07 AC 72 ms
71,424 KB
testcase_08 AC 71 ms
71,172 KB
testcase_09 AC 72 ms
71,236 KB
testcase_10 AC 72 ms
71,352 KB
testcase_11 AC 71 ms
71,316 KB
testcase_12 AC 71 ms
71,288 KB
testcase_13 AC 71 ms
71,100 KB
testcase_14 AC 70 ms
71,236 KB
testcase_15 AC 72 ms
71,404 KB
testcase_16 AC 72 ms
71,232 KB
testcase_17 AC 72 ms
71,464 KB
testcase_18 AC 71 ms
71,444 KB
testcase_19 AC 72 ms
71,324 KB
testcase_20 AC 72 ms
71,288 KB
testcase_21 AC 72 ms
71,424 KB
testcase_22 AC 72 ms
71,268 KB
testcase_23 AC 71 ms
71,320 KB
testcase_24 AC 72 ms
71,124 KB
testcase_25 AC 72 ms
71,096 KB
testcase_26 AC 72 ms
71,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = [0] * 101
for i, j in zip(a, b):
	c[j] += i
print("YES" if c[0] >= max(c[1:]) else "NO")
0