Submission #345966

# Submission time Handle Problem Language Result Execution time Memory
345966 2021-01-08T18:49:24 Z ahmet Easter Eggs (info1cup17_eastereggs) C++14
6 / 100
2 ms 512 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
#define ref(a,b,c) for(int (a)=(b);(a)<=(c);++(a))
#define rep(a,b) for(int (a)=0;(a)<(b);++(a))
#define ll long long
#define pb push_back
#define mp make_pair

int findEgg (int N, vector < pair < int, int > > bridges)
{
	for(int i=1;i<=N;++i){
		if(query({i}))return i;
	}
}

Compilation message

eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
   15 | }
      | ^
# Verdict Execution time Memory Grader output
1 Partially correct 1 ms 364 KB Number of queries: 16
2 Partially correct 2 ms 364 KB Number of queries: 16
3 Partially correct 2 ms 364 KB Number of queries: 16
4 Partially correct 1 ms 364 KB Number of queries: 16
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 492 KB Execution killed with signal 6 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 512 KB Execution killed with signal 6 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -