106992024-04-09 23:09:02mraronA válaszadás nehézségeicpp17Partially correct 20.83/1001.36s3680 KiB
#include "AdamEsEva.h"
#include <map>
using ll = long long ;
ll search() {
    int x=0;
    ll L=1, R=(ll)1e18+1;
    while(L+1<R) {
        ll mid=(L+R)/2;
        bool res=ask(mid);
        if(0==x) {
            if(!ask(1)) {
                x=1;
                res=ask(mid);
            }
        }

        if(res^x) {
            L=mid;
        }else {
            R=mid;
        }
    }

    return L;
}


void new_game() {
    answer(search());
}

SubtaskSumTestVerdictTimeMemory
subtask120.83/100
1Partially correct1.36s1876 KiB
2Partially correct1.358s2068 KiB
3Partially correct1.348s2276 KiB
4Partially correct1.35s2488 KiB
5Partially correct1.353s2700 KiB
6Partially correct1s2916 KiB
7Partially correct1.322s3004 KiB
8Partially correct1.067s3124 KiB
9Partially correct1.159s3240 KiB
10Partially correct971ms3316 KiB
11Partially correct906ms3312 KiB
12Accepted709ms3312 KiB
13Partially correct597ms3308 KiB
14Partially correct725ms3312 KiB
15Partially correct661ms3316 KiB
16Partially correct782ms3320 KiB
17Partially correct732ms3328 KiB
18Partially correct811ms3316 KiB
19Partially correct816ms3316 KiB
20Partially correct827ms3324 KiB
21Partially correct865ms3332 KiB
22Partially correct892ms3332 KiB
23Partially correct885ms3448 KiB
24Partially correct924ms3532 KiB
25Partially correct888ms3544 KiB
26Partially correct913ms3532 KiB
27Partially correct910ms3532 KiB
28Partially correct995ms3532 KiB
29Partially correct975ms3532 KiB
30Partially correct861ms3536 KiB
31Partially correct871ms3532 KiB
32Partially correct861ms3528 KiB
33Partially correct1.029s3528 KiB
34Partially correct802ms3680 KiB
35Partially correct828ms3676 KiB
36Partially correct1.133s3604 KiB