# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
690526 | thinh1711 | Bridges (APIO19_bridges) | C++17 | 43 ms | 4180 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>
#define reu(i,a,b) for (int i=a;i<=b;i++)
#define pb push_back
using namespace std;
int n,m;
const int mx=100002;
int bridge[mx];
int dist[100002];
vector<pair<int , int> > ke[10002];
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
cin>>n>>m;
memset(dist,0,sizeof(dist));
reu(i,1,m){
int u,v,d;
cin>>u>>v;
ke[u].pb({v,i});
ke[v].pb({u,i});
cin>>d;
bridge[i]=d;
}
int q;
cin>>q;
reu(i,1,q)
{
int typ;
cin>>typ;
if (typ==1){
int v,w;
# | 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... |