Submission #1141386

#TimeUsernameProblemLanguageResultExecution timeMemory
1141386brianhdzmdoEaster Eggs (info1cup17_eastereggs)C++20
6 / 100
1 ms436 KiB
#include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <numeric> #include <math.h> #include <string> #include <set> #include <utility> #define all(a) (a).begin(), (a).end() #define allr(a) (a).rbegin(), (a).rend() #define ll long long #define fr(i, a, b) for (ll i = a; i < b; i++) #define fr1(i, a, b) for (ll i = a - 1; i >= b; i--) #define fi first #define se second #define mp(j, k) make_pair(j, k) #define pb(x) push_back(x) #define pbp(x, y) push_back({x, y}) #define in(x) insert(x) #define vec vector<ll> #define vecv vector<vector<ll> > #define veb vector<bool> #define vecp vector<pair<ll,ll>> #define yes cout << "YES\n"; #define no cout << "NO\n"; #define ac 1e-7 #define fauto(a) \ for (auto i : a) \ cout << i << " "; #define fautop(a) \ for (auto i : a) \ cout << i.fi << " " << i.se << endl; using namespace std; int query(vector < int > islands); int findEgg(int N, vector < pair < int, int > > bridges) { int ok = 0; fr(i, 1, N + 1) { vector<int> one; one.pb(i); ok = query(one); if(ok == 1) { return i; break; } } return -1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...