Submission #726673

#TimeUsernameProblemLanguageResultExecution timeMemory
726673murad_2005Rarest Insects (IOI22_insects)C++17
10 / 100
376 ms288 KiB
#include "insects.h" #include <bits/stdc++.h> #define ll long long #define ull unsigned ll #define pii pair<int, int> #define piii pair<int, pii> #define pb push_back #define all(v) v.begin(), v.end() #define size(v) v.size() #define f first #define s second #define INF 1e9 using namespace std; int min_cardinality(int N) { int Min = INF; for(int i = 0; i < N; ++i){ move_inside(i); int cnt = 1; for(int j = 0; j < N; ++j){ if(j != i){ move_inside(j); int k = press_button(); if(k > 1){ cnt++; } move_outside(j); } } move_outside(i); Min = min(Min, cnt); } return Min; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...