10054 - The Necklace

All about problems in Volume 100. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 10054 - The Necklace

Post by brianfry713 » Thu Feb 27, 2014 2:13 am

Try running your code on the sample input.
Check input and AC output for thousands of problems on uDebug!

Lyrrad
New poster
Posts: 1
Joined: Wed Feb 18, 2015 1:36 am

Re: 10054 - The Necklace

Post by Lyrrad » Wed Feb 18, 2015 5:31 am

Here's a test case that tripped me up, even though the others posted here worked.

Code: Select all

1
6
1 2
2 3
3 4
4 5 
5 1
3 3

pakhandi
New poster
Posts: 1
Joined: Mon Nov 16, 2015 4:57 am

Re: 10054 - The Necklace

Post by pakhandi » Mon Nov 16, 2015 5:00 am

I got AC when I check if there is any odd degree node but get WA when I don't check this..
Can you give me a test case for such a scenario?

Post Reply

Return to “Volume 100 (10000-10099)”