# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
271716 | 2020-08-18T07:19:34 Z | Halit | Easter Eggs (info1cup17_eastereggs) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> #define max(xx,yy) (xx > yy ? xx : yy) #define min(xx,yy) (xx > yy ? yy : xx) #define all(x) x.begin(), x.end() using namespace std; int findEgg(int n, vector< pair<int, int> > bridges){ int ans = 0; for(int i = 0;i < n;++i){ vector< int > v = { i+1 }; ans += query(v); } return ans; }