# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
464059 | amunduzbaev | Cup of Jamshid (IOI17_cup) | C++14 | 1 ms | 204 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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;
//~ cout<<r<<" ";
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;
//~ cout<<a<<" "<<b<<"\n";
return {x + a, y + b};
}
/*
1
500000000 500000000
1
0 0
*/
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |