# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
89107 | nika | 호화 벙커 (IZhO13_burrow) | C++14 | 1130 ms | 50644 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fi first
#define se second
#define mp make_pair
#define lo long long
#define inf 1000000000
#define md 1000000007
#define pb push_back
#define li 1005
#define ii pair<int,int>
using namespace std;
int n,m,k,A[li][li],cur[li],ans,fa[li],sz[li];
vector<int> nxt[li];
int dsu(int x){
if(fa[x]==x) return x;
return fa[x]=dsu(fa[x]);
}
void union1(int a,int b){
int s1=dsu(a);
int s2=dsu(b);
if(s1==s2) return ;
if(sz[s1]<sz[s2]) swap(s1,s2);
fa[s2]=s1;
sz[s1]+=sz[s2];
sz[s2]=0;
}
void solve(int ind){
for(int i=0;i<=m;i++) nxt[i].clear();
for(int i=1;i<=n;i++){
nxt[cur[i]-ind].pb(i);
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |