# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1099971 | ttamx | Bridges (APIO19_bridges) | C++17 | 940 ms | 11348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
const int N=50005;
const int M=1e5+5;
const int Q=1e5+5;
const int K=900;
int n,m,q;
int ans[Q];
bool used[M];
struct Edge{
int u,v,w;
bool operator<(const Edge &o)const{
if(w!=o.w)return w>o.w;
if(u!=o.u)return u<o.u;
return v<o.v;
}
}ed[M];
multiset<Edge> ms;
struct Query{
int t,s,w;
bool operator<(const Query &o)const{
return w>o.w;
}
}qr[Q];
Compilation message (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |