Submission #1074658

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10746582024-08-25 11:48:28DeathIsAweHotter Colder (IOI10_hottercolder)C++17
50 / 100
527 ms8236 KiB
#include "grader.h"
#include <iostream>
#include <vector>
using namespace std;
int destroy(int top, int bottom, int previous) {
//cout << top << ' ' << bottom << '\n';
/*
if (top - bottom == 0) {
ans = top;
return;
} else if (top - bottom == 1) {
int sussy;
if (previous == -1) {
Guess(top); sussy = Guess(bottom);
} else if (previous == top) {
sussy = Guess(bottom);
} else {
sussy = -Guess(top);
}
if (sussy == 1) {
ans = bottom;
} else {
ans = top;
}
return;
}
*/
int mid = (top + bottom) / 2;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

hottercolder.cpp: In function 'int destroy(int, int, int)':
hottercolder.cpp:34:11: warning: unused variable 'midleftans' [-Wunused-variable]
   34 |       int midleftans = Guess(midleft), midrightans = Guess(midright);
      |           ^~~~~~~~~~
hottercolder.cpp:46:1: warning: control reaches end of non-void function [-Wreturn-type]
   46 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...