답안 #345966

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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 | }
      | ^
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -