Submission #982908

# Submission time Handle Problem Language Result Execution time Memory
982908 2024-05-15T02:59:56 Z HappyCapybara The Big Prize (IOI17_prize) C++17
0 / 100
46 ms 344 KB
#include "prize.h"
#include<bits/stdc++.h>
using namespace std;

int find_best(int n) {
	for (int i = 0; i < n; i++){
		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:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^
# Verdict Execution time Memory Grader output
1 Incorrect 46 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -