# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1150471 | bilgun | Newspapers (CEOI21_newspapers) | C++20 | 0 ms | 324 KiB |
#include<bits/stdc++.h>
using namespace std;
long long n, m, sum = 0;
vector<vector<long long>> g;
vector<long long> col, more;
int yno = 0;
int ans;
void dfs(int node, int dest, int &ways, vector<bool>vis) {
vis[node] = true;
if( node == dest && node ) ways++;
for( int i = 0; i < g[node].size(); i++) {
if( !vis[i]){
dfs( i, dest, ways, vis);
}
else if( vis[i] == true && i == node){
ways++;
return;
}
}
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> n >> m;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |