Submission #70583

# Submission time Handle Problem Language Result Execution time Memory
70583 2018-08-23T06:44:15 Z chhun Hotter Colder (IOI10_hottercolder) C++14
25 / 100
10000 ms 8312 KB
#include <stdio.h>
#include "grader.h"
int cnt = -0x3f3f3f3f, ori;
int pre,pre1;
int HC(int N) {
	int g;
	for (int i = 1; i <= N; i++) {
		g = Guess(i);
		if (i != 1 && g == -1) {
			return i-1;
		}
	}
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Verdict Execution time Memory Grader output
1 Correct 104 ms 1376 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 97 ms 1336 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 129 ms 1272 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Execution timed out 10038 ms 8312 KB Time limit exceeded