# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1011747 | uranhishig | Hotter Colder (IOI10_hottercolder) | C++14 | 154 ms | 16208 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int Guess(int G);
//int run(int L, int R) {
// if(L == R){
// return 1;
// }
//}
int HC(int n){
int q = 0, i;
bool x = true;
bool xx = true;
for(int i = 1; i <= 500; i++){
if(Guess(i) == -1){
if(xx){
q = i;
xx = false;
}
x = false;
}
}
if(x){
cout << "500" << endl;
}
else{
cout << q - 1 << endl;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |