Submission #140334

# Submission time Handle Problem Language Result Execution time Memory
140334 2019-08-02T14:50:52 Z ggoh The Big Prize (IOI17_prize) C++14
0 / 100
113 ms 248 KB
#include "prize.h"
#include<bits/stdc++.h>


int find_best(int n) {
	for(int i = 0; i < n; i++) {
		std::vector<int> res = ask(i);
		if(res[0] + res[1] == 0)
			return i;
	}
}

Compilation message

prize.cpp: In function 'int find_best(int)':
prize.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# Verdict Execution time Memory Grader output
1 Incorrect 90 ms 248 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 113 ms 248 KB Incorrect
2 Halted 0 ms 0 KB -