답안 #988417

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
988417 2024-05-24T16:18:49 Z cnn008 드문 곤충 (IOI22_insects) C++17
0 / 100
1 ms 344 KB
#include "bits/stdc++.h"
using namespace std;

#include "insects.h";

#ifdef N_N_C
#include "debug.h"
#else
#define cebug(...) "Arya"
#endif

#define ll long long

const int N=1e5+5;
const int mod=1e9+7;
int vis[205],cnt[205],type;
int min_cardinality(int n){
	for(int i=0; i<n; i++){
		if(!vis[i]){
			vis[i]=++type;
			move_inside(i);
			for(int j=i+1; j<n; j++){
				move_inside(j);
				int val=press_button();
				if(val==2) vis[j]=type;
				move_outside(j);
			}
			move_outside(i);
		}
	}
	for(int i=0; i<n; i++) cnt[vis[i]]++;
	return *min_element(cnt+1,cnt+n+1);
}
/**  /\_/\
*   (= ._.)
*   / >💖 \>💕
**/

Compilation message

insects.cpp:4:21: warning: extra tokens at end of #include directive
    4 | #include "insects.h";
      |                     ^
insects.cpp:34:9: warning: "/*" within comment [-Wcomment]
   34 | /**  /\_/\
      |
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Wrong answer.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Wrong answer.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB Wrong answer.
2 Halted 0 ms 0 KB -