#pragma once

#include<vector>

int solve(int N, std::vector<int> P, std::vector<int> V);
