Search found 2 matches

by beginer
Wed Apr 13, 2016 10:19 pm
Forum: Volume 107 (10700-10799)
Topic: 10707 - 2D-Nim
Replies: 15
Views: 26554

10707 - 2D-Nim

hi,i was solving this problem,
i used this algorithm ,
find size of all row connected component and column connceted component in both board;
sort them then compare;
please if any can tell me where the wrong since you can only remove connected component by row or column
by beginer
Mon Apr 11, 2016 2:54 am
Forum: Volume 124 (12400-12499)
Topic: 12442 - Forwarding Emails
Replies: 32
Views: 22503

Re: 12442 - Forwarding Emails

please igot WA and itied all testcases i found,all give me right answers,this is my code: #include<stdio.h> #include<vector> #include<cstring> #include<algorithm> using namespace std; int n; #define Max 50100 int dp[Max]; vector< int> visited; vector< vector< int> > adj; //int dp[100000]; int dfs(in...

Go to advanced search