Submission #395184

# Submission time Handle Problem Language Result Execution time Memory
395184 2021-04-28T01:08:20 Z abc864197532 Swapping Cities (APIO20_swap) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "grader_swap.cpp"
using namespace std;
#define lli long long int
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define test(x) cout << "Line(" << __LINE__ << ") " #x << ' ' << x << endl
#define printv(x) {\
	for (auto i : x) cout << i << ' ';\
	cout << endl;\
}
#define pii pair <int, int>
#define pll pair <lli, lli>
#define X first
#define Y second
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
template<typename A, typename B>
ostream& operator << (ostream& o, pair<A, B> a){
    return o << a.X << ' ' << a.Y;
}
template<typename A, typename B>
istream& operator >> (istream& o, pair<A, B> &a){
    return o >> a.X >> a.Y;
}
const int mod = 1e9 + 7, abc = 864197532, Doludu = 123, N = 100001, logN = 18, K = 40;

vector <pii> adj[N];
int n, m, mx, jump[N][logN], val[N][logN], in[N], out[N], _t;

void dfs(int v, int pa) {
    
}

void build() {
    
}

void init(int _n, int _m, vector <int> u, vector <int> v, vector <int> w) {
    for (int i = 0; i < m; ++i) {
        adj[u[i]].eb(v[i], w[i]);
        adj[v[i]].eb(u[i], w[i]);
        mx = max(mx, w[i]);
    }
    build();
}

int getMinimumFuelCapacity(int u, int v) {
    if (n == m) return mx;
    return -1;
}
/*
5 6
0 1 4
0 2 4
1 2 1
1 3 2
2 3 3
1 4 10
3
1 2
2 4
0 1
 */

Compilation message

swap.cpp:2:10: fatal error: grader_swap.cpp: No such file or directory
    2 | #include "grader_swap.cpp"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.