| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 1041169 | 7again | Cup of Jamshid (IOI17_cup) | C++17 | 1 ms | 348 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cup.h"
#include <bits/stdc++.h>
using namespace std ;
vector<int> find_cup() {
    vector<int> result(2);
    int INF = -1e9 ;
    int a = 0 , xr = ask_shahrasb(INF , INF) ;
    for(int i = 0 ; i < 31 ; i++)
    {
        int R = (1<<i) ;
        int Z = ask_shahrasb(INF+R , INF) ;
        if(Z == (xr^R))
            a += R ;
    }
    int b = (xr^a) ;
    result[0] = a + INF ;
    result[1] = b + INF ;
    return result ;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
