結果

問題 No.216 FAC
ユーザー あかりきあかりき
提出日時 2021-05-24 06:08:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 1,350 ms
コンパイル使用メモリ 86,396 KB
実行使用メモリ 71,056 KB
最終ジャッジ日時 2023-08-02 16:13:04
合計ジャッジ時間 3,549 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
70,876 KB
testcase_01 AC 67 ms
70,892 KB
testcase_02 AC 66 ms
70,656 KB
testcase_03 AC 64 ms
70,780 KB
testcase_04 AC 67 ms
70,712 KB
testcase_05 AC 65 ms
70,836 KB
testcase_06 AC 65 ms
70,868 KB
testcase_07 AC 67 ms
70,944 KB
testcase_08 AC 69 ms
71,056 KB
testcase_09 AC 67 ms
70,724 KB
testcase_10 AC 68 ms
70,904 KB
testcase_11 AC 67 ms
70,892 KB
testcase_12 AC 66 ms
70,752 KB
testcase_13 AC 68 ms
70,880 KB
testcase_14 AC 68 ms
70,868 KB
testcase_15 AC 68 ms
70,908 KB
testcase_16 AC 66 ms
70,988 KB
testcase_17 AC 66 ms
70,716 KB
testcase_18 AC 66 ms
70,660 KB
testcase_19 AC 66 ms
70,660 KB
testcase_20 AC 67 ms
70,720 KB
testcase_21 AC 68 ms
70,944 KB
testcase_22 AC 66 ms
70,780 KB
testcase_23 AC 68 ms
70,960 KB
testcase_24 AC 70 ms
70,928 KB
testcase_25 AC 70 ms
70,892 KB
testcase_26 AC 69 ms
70,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
ct=[0]*101
for i in range(n):
  ct[b[i]]+=a[i]
if max(ct)==ct[0]:
  print('YES')
else:
  print('NO')
0