/** * @FileName a.cpp * @Author kanpurin * @Created 2020.06.12 19:07:35 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int n; cin >> n; vector< pair< int, int > > a(n); for (int i = 0; i < n; i++) { cin >> a[i].first >> a[i].second; } constexpr int INF = 1e9 + 6; vector< vector< int > > dp(1 << n, vector< int >(n, INF)); for (int i = 0; i < n; i++) { dp[(1<