Submission #754482

#TimeUsernameProblemLanguageResultExecution timeMemory
754482ValiAntonieHotter Colder (IOI10_hottercolder)C++17
0 / 100
721 ms262144 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; int HC(int n){ int st = 1; int dr = n; Guess(1); int x = Guess(n); while(st <= dr){ int mij = (st + dr) / 2; if(x == 0) return mij; else if(x > 0){ st = mij + 1; Guess(n); int x = Guess(st); } else{ dr = mij - 1; Guess(1); int x = Guess(dr); } } return st; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:18:17: warning: unused variable 'x' [-Wunused-variable]
   18 |             int x = Guess(st);
      |                 ^
hottercolder.cpp:23:17: warning: unused variable 'x' [-Wunused-variable]
   23 |             int x = Guess(dr);
      |                 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...