# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
129034 | thanos | Min-max tree (BOI18_minmaxtree) | C++14 | 3 ms | 1016 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<iostream>
#include<map>
#include<vector>
#include<algorithm>
#define pb push_back
using namespace std;
struct edge{
int x;
int y;
int z;
bool operator<(const edge &rhs)const{return rhs.z<z;};
}q[10005];
struct par{
int x;
int y;
bool operator<(const par &rhs)const{return rhs.x>x;};
};
map<par,int> mym;
vector<int> adj[10005];
bool dfs(int s,int d,int v,bool vis[]){
vis[s]=true;
if(s==d){
return true;
}
bool c=false;
for(int i=0; i<adj[s].size(); i++){
if(!vis[adj[s].at(i)]){
if(dfs(adj[s].at(i),d,v,vis)){
par t; t.x=min(s,adj[s].at(i)); t.y=max(s,adj[s].at(i));
mym[t]=v;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |