Submission #524771

#TimeUsernameProblemLanguageResultExecution timeMemory
524771obokamanThe Big Prize (IOI17_prize)C++17
0 / 100
77 ms288 KiB
#include <iostream>
#include "prize.h"

using namespace std;

int find_best(int n) {
  for (int i = 0; i < n; ++i) {
    auto ans = ask(i);
    if (ans[0]==0 && ans[1]==0) {
      return i;
    }
  }
  return -1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...