結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-10-07 02:22:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 1,000 ms |
| コード長 | 200 bytes |
| コンパイル時間 | 285 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-15 00:42:29 |
| 合計ジャッジ時間 | 1,833 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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