# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
668195 | fatemetmhr | Flight to the Ford (BOI22_communication) | C++17 | 2643 ms | 1940 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// Willkommen! hier ist der Ort, an dem du sterben wirst :)
#include"communication.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define all(x) x.begin(), x.end()
#define pb push_back
#define fi first
#define se second
const int maxn5 = 3e5 + 10;
const ll inf = 1e18;
const int lg = 30;
void encode(int n, int x){
int g = 0;
int keep = -1;
for(int i = 1; i < lg; i++){
int a1 = (keep == -1 ? send((x >> g)&1) : keep);
int b1 = send((x >> i)&1);
int b2 = send((x >> i)&1);
int a2 = send((x >> g)&1);
keep = a2;
if(b1 == b2)
continue;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |