# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
738173 | Ronin13 | Hotspot (NOI17_hotspot) | C++14 | 900 ms | 7032 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pb push_back
#define epb emplace_back
#define ull unsigned ll
using namespace std;
const int nmax = 200001;
vector <vector <int> > g(nmax);
vector <double> ans(nmax);
int n;
void BFS(int a, int b){
queue <int> q;
vector <int> dp(n + 1, 0);
dp[a] = 1;
vector <int> d(n + 1, 1e9);
d[a] = 0;
q.push(a);
while(!q.empty()){
int v = q.front(); q.pop();
for(int to : g[v]){
if(d[to] == d[v]) continue;
if(d[to] > d[v]) dp[to] += dp[v];
if(d[to] == 1e9) d[to] = d[v] + 1, q.push(to);
}
# | 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... |