제출 #726671

#제출 시각아이디문제언어결과실행 시간메모리
726671murad_2005드문 곤충 (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...