Problem with codechef April [long] 2017 Dish of Life.

Revision en1, by Mr.Adnan, 2017-04-11 20:33:19

The problem said Chef can visit Islands in any order. But this t.case 1 3 3 1 1 2 1 2 3 1 2 3

shows output "all". But it should be "some" I guess. But my code is AC although it shows "all" for this testcase.

If I rearrange the Island like this- 1 3 3 3 1 2 3 1 1 2 1 2

it shows "some" as output.

Shouldn't they take a look for the corner cases ?! Or am I missing something to understand? Help me.

problem link: https://www.codechef.com/APRIL17/problems/DISHLIFE

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Mr.Adnan 2017-04-11 22:26:19 44
en2 English Mr.Adnan 2017-04-11 22:10:06 481 that was about an ongoing contest. So, I edited it.
en1 English Mr.Adnan 2017-04-11 20:33:19 543 Initial revision (published)