shreya_10's blog

By shreya_10, history, 4 weeks 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

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

First find minimum and then check if minimum occurs more than once.

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

3

2 2 1

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Ans is 1 or Still Rozdil.

    • »
      »
      »
      4 weeks ago, # ^ |
        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.

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it
my code