shreya_10's blog

By shreya_10, history, 6 years ago, In English
Your code here...

. ~~~~~ My code is here... ~~~~~ 113425941 - this is problem

wrong answer on test case 10. please cheak.

  • Vote: I like it
  • -45
  • Vote: I do not like it

| Write comment?
»
6 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

3

2 2 1

  • »
    »
    6 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Ans is 1 or Still Rozdil.

    • »
      »
      »
      6 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      the smallest distance is 1 which is from city 3. So answer should be 3, but i guess your answer will "Still Rodzil"

      What you can just do is, first find the minimum, then count the number of minimum again and then just do it easily.