結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2024-05-30 22:53:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 1,000 ms |
コード長 | 184 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 52,352 KB |
最終ジャッジ日時 | 2024-12-20 21:42:48 |
合計ジャッジ時間 | 2,340 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) c = [0] * 101 for i in range(n): c[b[i]] += a[i] print("YES" if c[0] >= max(c) else "NO")