Submission #981379

# Submission time Handle Problem Language Result Execution time Memory
981379 2024-05-13T06:29:21 Z batsukh2006 Easter Eggs (info1cup17_eastereggs) C++17
0 / 100
1 ms 600 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
const int mxN=513;
vector<int> v[mxN],o;
void dfs(int a, int p){
	o.push_back(a);
	for(auto node: v[a]){
		if(node!=p){
			dfs(node,a);
		}
	}
}
int findEgg(int N, vector<pair<int,int>> bridges){
	int l=0,r=N-1;
	while(l<=r){
		int m=l+(r-l)/2;
		vector<int> c;
		for(int i=0; i<m; i++){
			c.push_back(o[i]);
		}
		if(query(c)) r=m-1;
		else l=m+1;
	}
    return o[l];
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 344 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 600 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -