Submission #726671

#TimeUsernameProblemLanguageResultExecution timeMemory
726671murad_2005Rarest Insects (IOI22_insects)C++17
0 / 100
1 ms208 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 using namespace std; int min_cardinality(int N) { int Min = 1; 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 != cnt){ 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...