try this
1
4
2 2 3
3 1 3 4
2 1 2
1 2
your answer is 1 , but the true answer is 0 ;
your DFS don,t mark node 4 and just return false ;
---------
huhuhu...
Search found 4 matches
- Tue Jul 15, 2003 3:50 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10505 - Montesco vs Capuleto
- Replies: 73
- Views: 47664
- Fri Aug 16, 2002 4:57 am
- Forum: Volume 1 (100-199)
- Topic: 131 - The Psychic Poker Player
- Replies: 34
- Views: 10157
- Thu Aug 15, 2002 4:35 am
- Forum: Volume 1 (100-199)
- Topic: 131 - The Psychic Poker Player
- Replies: 34
- Views: 10157
- Tue Aug 13, 2002 10:44 pm
- Forum: Volume 1 (100-199)
- Topic: 131 - The Psychic Poker Player
- Replies: 34
- Views: 10157
131 - The Psychic Poker Player
My english is poor :-? I see 130 again and again but I just can not
understand how to simulate it, if you know, please tell me.
/**********************/
and about 131 , do it have any special case or trap, I just get lots WA!
here is my code for 131
I use c but send c++ :oops:
/*@judge_id ...
understand how to simulate it, if you know, please tell me.
/**********************/
and about 131 , do it have any special case or trap, I just get lots WA!
here is my code for 131
I use c but send c++ :oops:
/*@judge_id ...