結果

問題 No.216 FAC
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-03-11 11:51:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-06 17:35:07
合計ジャッジ時間 1,501 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 14 ms
7,840 KB
testcase_03 AC 14 ms
7,768 KB
testcase_04 WA -
testcase_05 AC 14 ms
7,884 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 14 ms
7,952 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 14 ms
7,804 KB
testcase_14 WA -
testcase_15 AC 14 ms
7,764 KB
testcase_16 AC 14 ms
7,848 KB
testcase_17 AC 15 ms
7,788 KB
testcase_18 WA -
testcase_19 AC 14 ms
7,880 KB
testcase_20 WA -
testcase_21 AC 14 ms
7,772 KB
testcase_22 AC 14 ms
7,808 KB
testcase_23 AC 15 ms
7,892 KB
testcase_24 WA -
testcase_25 AC 15 ms
7,896 KB
testcase_26 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
point = list(map(int, input().split()))
player = list(map(int, input().split()))

score = [0 for i in range(100)]
for pt, pl in zip(point, player):
    score[pl-1] += pt

if score[0] >= max(score[1:]):
    print('YES')
else:
    print('NO')
0