제출 #464045

#제출 시각아이디문제언어결과실행 시간메모리
464045amunduzbaevCup of Jamshid (IOI17_cup)C++14
0 / 100
1 ms204 KiB
#include "bits/stdc++.h"
#include "cup.h"
#ifndef EVAL
#include "grader.cpp"
#endif

using namespace std;

int ask(int x, int y){
	return ask_shahrasb(x, y);
}

vector<int> find_cup(){
	int x = -1e9, y = -1e9;
	int r = ask(x, y), a = 0;
	for(int i=0;i<30;i++){
		int rx = ask(x + (1ll << i), y);
		if(rx == (r ^ (1ll << i))) a |= (1 << i);
	}
	int b = r ^ a;
	return {x + a, y + b};
}

/*

1
0 0

*/
#Verdict Execution timeMemoryGrader output
Fetching results...