# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
783363 | FEDIKUS | 드문 곤충 (IOI22_insects) | C++17 | 52 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "insects.h"
#include<bits/stdc++.h>
using namespace std;
const int maxn=2010;
int n;
int tren[maxn];
int perm[maxn];
int klk[maxn];
int unutra=0;
int korak=1;
int raz;
bool nemoj[maxn];
bool stabrekojikurac[maxn];
void ubaci(int i){
if(tren[i]!=0) return;
tren[i]=korak;
move_inside(perm[i]);
unutra++;
}
void izbaci(int i){
if(tren[i]==0) return;
tren[i]=0;
move_outside(perm[i]);
unutra--;
}
int pitaj(){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |