Submission #62070

# Submission time Handle Problem Language Result Execution time Memory
62070 2018-07-27T11:52:54 Z reality Hotter Colder (IOI10_hottercolder) C++17
77 / 100
766 ms 8292 KB
#include "grader.h"
#include "bits/stdc++.h"
using namespace std;
#define fi first
#define se second
#define ll long long
#define dbg(v) cerr<<#v<<" = "<<v<<'\n'
#define vi vector<int>
#define vl vector <ll>
#define pii pair<int,int>
#define mp make_pair
#define db long double
#define pb push_back
#define all(s) s.begin(),s.end()
template < class T > T smin(T &a,T b) {if (a > b) a = b;return a;}
template < class T > T smax(T &a,T b) {if (a < b) a = b;return a;}
int HC(int N){
	int l = 1,r = N;
	while (l < r) {
		Guess(l);
		int cnt = Guess(r);
		if (!cnt)
			return (l + r) / 2;
		if (cnt == 1) {
			l = (l + r + 2) / 2;
		} else {
			r = (l + r - 1) / 2;
		}
	}
	return l;
}
# Verdict Execution time Memory Grader output
1 Correct 27 ms 1272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 1272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 27 ms 1272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Partially correct 766 ms 8292 KB Output is partially correct - alpha = 0.068965517241