Submission #820494

#TimeUsernameProblemLanguageResultExecution timeMemory
820494vjudge1The Big Prize (IOI17_prize)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include "books.h"
using namespace std ;
//vector<int> ask(int ind)
//{
//    vector<int> v(2) ;
//    cout << "? " << ind << '\n' ;
//    cin >> v[0] >> v[1] ;
//    return v ;
//}
int find_best(int n)
{
    int l = -1, r = n ;
    while(l + 1 < r)
    {
        int mid = (l + r) / 2 ;
        vector<int> v = ask(mid) ;
        if(!v[0] && !v[1])
            return mid ;
        else
        {
            if(v[0])
                r = mid ;
            else
                l = mid ;
        }
    }
    return l ;
}
//signed main()
//{
//    int n ;
//    cin >> n ;
//    cout<<find_best(n) ;
//    return 0 ;
//}

Compilation message (stderr)

prize.cpp:2:10: fatal error: books.h: No such file or directory
    2 | #include "books.h"
      |          ^~~~~~~~~
compilation terminated.