# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
690981 | divad | Shell (info1cup18_shell) | C++14 | 64 ms | 31704 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define MOD 1000000007
#define MAX 1000002
using namespace std;
int n,m,p,x,y,d[MAX],dp[MAX],c[MAX],vf[MAX];
vector<int> v[MAX];
vector<int> mrc;
void dfs(int nod){
vf[nod] = 1;
for(int vecin: v[nod]){
if(vf[vecin] == 0){
d[vecin] = 1+dp[nod];
dfs(vecin);
}
}
}
void dfs_dp(int nod, int src, int dest){
vf[nod] = 1;
for(int vecin: v[nod]){
if(vf[vecin] == 0 && d[vecin] >= d[nod] || (vecin == dest || c[vecin] == 0)){
dp[vecin] += dp[nod];
dp[vecin] %= MOD;
dfs_dp(vecin, src, dest);
}
}
}
int nr_drum(int src, int dest){
컴파일 시 표준 에러 (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... |