結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-10-07 02:22:17 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 1,000 ms |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,372 KB |
| 最終ジャッジ日時 | 2026-05-02 11:13:54 |
| 合計ジャッジ時間 | 3,855 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
P = [0] * 101
for i in range(N):
P[B[i]] += A[i]
if max(P) == P[0]:
print('YES')
else:
print('NO')
matsu7874