| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 587672 | LastRonin | Flights (JOI22_flights) | C++17 | 9 ms | 1300 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Ali.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
 
using namespace std;
  
namespace {
	vector<vector<int>> g;
	int n;
}
 
void Init(int N, std::vector<int> U, std::vector<int> V) {
	n = N;
	g.clear();
	for(int j = 0; j < n; j++) {
	    vector<int> a;
		g.pb(a);
	}
	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) {
	ll v = 0, u = 0;
	for(int j = 0; j <= 13; j++) {
		if(S[j] == '1')
			v += (1<<j);		
	}
	int dist[n];
	for(int i = 0; i < n; i++)
		dist[i] = -1;
	queue<int> q;
	dist[v] = 0;
	q.push(v);
	while(q.size()) {
		ll a = q.front();
		q.pop();
		for(auto u : g[a]) {
			if(dist[u] == -1) {
				dist[u] = dist[a] + 1;
				q.push(u);
			}
		}
	}
	string a;
	for(int j = 0; j < n; j++) {
		for(int i = 0; i < 14; i++) {
			if((1ll<<i)&dist[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;
}
 
string SendB(int N, int X, int Y) {
	x = X;
	y = Y;
	n = N;
	string a;
	for(int j = 0; j < 14; j++) {
		if((1ll<<j)&x)a += "1";
		else a += "0";
	}
	while(a.size() != 20)a += "0";
	return a;
}
 
int Answer(string T) {
	if(T.size() != 14 * n)return 0;
	int pos = 0;
	int answ = -1;			
	for(int j = 0; j < n; j++) {
		if(j == y) {
			answ = 0;
			if(pos + 13 >= T.size())return 0;
			string ss = T.substr(pos, 14);
			for(int i = 0; i < 14; i++) {
				if(ss[i] == '1') {						
					answ += (1ll<<i);
				}
			}
			pos += 14;
			break;
		} else {
			pos += 14;
		}
	}
	if(answ >= 0 && answ < n)return answ;
	return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
