I think the given graph can be disconnected !! :D
My code handled that and got AC.
try this case :
input:
7
1 2 3
2 3
5 6
6 7
0
0
output :
2
I don't think so. My accepted code gives the output 1.
Because the the graph has two subgraph, in which only 6 is the articulation point. If anyone ...
Search found 4 matches
- Wed Aug 04, 2010 2:33 pm
- Forum: Volume 3 (300-399)
- Topic: 315 - Network
- Replies: 68
- Views: 33401
- Sun Aug 01, 2010 11:06 am
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 58740
Help: 336 WA
Getting WA , don't know why.
please give me some critical inputs or help me to find the bugs.
please give me some critical inputs or help me to find the bugs.
Code: Select all
ACC
- Mon Jul 12, 2010 5:59 pm
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56857
Re: 727 - Equation
Thank you Sazzad vai.
I have got it.
But i have a confusion.
What is relation between my input taking procedure and RE.
I have got it.
But i have a confusion.
What is relation between my input taking procedure and RE.
- Sun Jul 11, 2010 8:06 am
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56857
Re: 727 - Equation

I can't understand , why my code get RE.
It's a very simple code.
please help me.
Code: Select all
// acc