Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

CSGO_is_life's blog

By CSGO_is_life, history, 8 years ago, In English

I have been trying this question for 2 days. I have come up with a solution which binary searches the minimum temperature and for each possible temperature I check the minimum distance by Dijkstra's Algo. It has passed the sample test case as well as all the test cases of uDebug, but it is giving WA in UVA. Can someone give me some test cases where my code may fail. My solution

Thanks.

UPD — I finally got it accepted. UVA judge penalizes for spaces at the end of each line .... feels sad when an entire day is spent "debugging" an AC solution. The above link now contains my AC solution :).

  • Vote: I like it
  • +18
  • Vote: I do not like it

»
8 years ago, # |
  Vote: I like it +10 Vote: I do not like it

Sorry for the trouble ... I finally managed to get it accepted ... Did not know UVA judge penalizes for a space at the end of each line.

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by CSGO_is_life (previous revision, new revision, compare).