# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
655882 | Lobo | Flight to the Ford (BOI22_communication) | C++17 | 2965 ms | 2352 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"communication.h"
#include<bits/stdc++.h>
using namespace std;
const long long inf = (long long) 1e18 + 10;
const int inf1 = (int) 1e9 + 10;
#define dbl long double
#define endl '\n'
#define sc second
#define fr first
#define mp make_pair
#define pb push_back
#define all(x) x.begin(), x.end()
vector<pair<int,int>> join(vector<pair<int,int>> v1, vector<pair<int,int>> v2) {
vector<pair<int,int>> v;
for(auto x : v1) v.pb(x);
for(auto x : v2) v.pb(x);
return v;
}
void encode(int N, int X) {
int szA = N, szB = 0;
vector<pair<int,int>> A,B;
A.pb(mp(1,N));
while(szA+szB >= 5) {
int sza = szA/2,szb = szB/2;
vector<pair<int,int>> a,b;
while(A.size() && sza != 0) {
int l = A.back().fr;
int r = A.back().sc;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |