結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-10 07:17:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 222 bytes |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-22 00:46:00 |
| 合計ジャッジ時間 | 1,769 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 RE * 15 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = {i:0 for i in range(N)}
for i in range(N):
C[B[i]] += A[i]
if C[0] == max(C.values()):
print("YES")
else:
print("NO")