Search found 2 matches

by punter
Wed May 22, 2019 8:19 pm
Forum: Volume 124 (12400-12499)
Topic: 12442 - Forwarding Emails
Replies: 31
Views: 14224

Re: 12442 - Forwarding Emails

I am getting WA. Can anyone help me out here? #include <bits/stdc++.h> using namespace std; #define INF_MAX 2147483647 #define INF_MIN -2147483648 #define INF (1 << 30) #define EPS 1e-9 #define PI acos(-1.0) #define N 2 + 50000 #define MOD 10000000007 #define sz(x) (int)(x).size() #define all(x) (x)...
by punter
Thu Aug 04, 2016 8:20 am
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 132
Views: 25271

Re: 459 - Graph Connectivity

I am getting Runtime Error for my Python code. Can someone point out the mistakes in my code? TIA. def dfs(u, G, visited): visited[u] = True for v in G[u]: if(not visited[v]): dfs(v, G, visited) def main(): G = [] visited = [False] * 30 for i in range(30): G.append([]) tc = int(input()) n = input() ...

Go to advanced search