結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-15 19:23:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 1,000 ms |
| コード長 | 214 bytes |
| コンパイル時間 | 648 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2024-12-15 02:14:23 |
| 合計ジャッジ時間 | 3,025 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
lsA = list(map(int,input().split()))
lsB = list(map(int,input().split()))
ls = [0]*101
for i in range(N):
ls[lsB[i]] += lsA[i]
K = ls[0]
if K >= max(ls):
print('YES')
else:
print('NO')