| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 587620 | LastRonin | Flights (JOI22_flights) | C++17 | 1 ms | 840 KiB | 
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "Ali.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
const ll N = 1e4 + 10;
namespace {
	vector<ll> g[N];
	ll dist[N];
	ll n;
	void dfs(ll v, ll p) {
		for(auto u : g[v]) {
			if(u != p) {
				dist[u] = dist[v] + 1;
				dfs(u, v);
			}
		}
	}
}
void Init(int N, std::vector<int> U, std::vector<int> V) {
	n = N;
	for(int j = 0; j < n; j++)
		g[j].clear();
	for(int j = 0; j < U.size(); j++) {
		g[U[j]].pb(V[j]);
		g[V[j]].pb(U[j]);
	}
	for(int i = 0; i < N; i++)
		SetID(i, i);
}
std::string SendA(std::string S) {
	assert(0);
	ll v = 0, u = 0;
	for(int j = 0; j <= 13; j--) {
		if(S[j] == '1')
			v += (1<<j);		
	}
	for(int j = 14; j < 20; j++) {
		if(S[j] == '1')
			u += (1<<(j - 14));
	}
	dist[v] = 0;
	dfs(v, -1);
	string a;
	for(int j = 0; j < n; j++) {
		if((j&u)==u) {
			for(int i = 0; i < 14; i++) {
				if((1ll<i)&j)a += "1";
				else a += "0";
			}
		}
	}
	return a;
}
#include "Benjamin.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
namespace {
	int n, x, y;
}
std::string SendB(int N, int X, int Y) {
	x = X;
	y = Y;
	n = N;
	string a;
	for(int j = 0; j < 14; j++) {
		if((1<<j)&x)a += "1";
		else a += "0";
	}
	for(int j = 0; j < 6; j++)
		if((1<<j)&y) a += "1";		
		else a += "0";
	return a;
}
int Answer(std::string T) {
	assert(0);
	int sub = ((1<<6) - 1)&y;
	ll pos = 0;
	ll answ = 0;				
	for(int j = 0; j < n; j++) {
		if(j&sub) {
			if(j == y) {
				for(int i = pos; i < pos + 14; i++) {
					answ += (T[i] == '1' ? 1 : 0) * (1<<(i - pos));
			   	}
				return answ;
			} else {
				pos += 14;
			}
		}
	}
	assert(0);
	return answ;
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
