# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
14812 | eaststar | 관광지 (IZhO14_shymbulak) | C++98 | 72 ms | 25572 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
struct al{
int nx,e;
}a[400010];
struct tree{
int x,ml,md;
long long mcnt,ans;
}b[200010];
struct D{
int m1,m2,md;
long long n1,n2,s;
}c[200010];
struct dq{
int i,s,cnt;
}t[100010];
int st[200010],q[200010],p[200010],chk[200010],lev[200010],d[200010],cnt,l,md;
long long tcnt,ans;
int mod(int i){return i>l?i%l:i;}
void make_al(int s,int e){a[++cnt].nx=st[s],a[cnt].e=e,st[s]=cnt;}
void get_cycle(int s){
memset(chk,0,sizeof chk);
for(;;){
chk[s]=1;
b[++l].x=s;
s=p[s];
if(s==b[1].x)return;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |