# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1139133 | stdfloat | Easter Eggs (info1cup17_eastereggs) | C++20 | 0 ms | 432 KiB |
#include <bits/stdc++.h>
#include "grader.h"
// #include "grader.cpp"
using namespace std;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
int rnd(int l, int r) {
return l + rng() % (r - l + 1);
}
int findEgg (int N, vector < pair < int, int > > bridges){
vector<bool> vis(N + 1);
for (int i = 1; i < N; i++) {
int x = rnd(1, N);
while (vis[x]) x = rnd(1, N);
if (query({x}) == 1) return x;
vis[x] = true;
}
for (int i = 1; i <= N; i++)
if (!vis[i]) return i;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |