ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1011. Conductors

if you use C#
Posted by renat 26 Jan 2009 20:04
apparently default culture on the server is such, that double as a string looks like 14,14 not 14.14. So Convert.ToDouble(input) will throw exception. To fix this use CultureInfo:
CultureInfo ci = new CultureInfo("en-us");
low = Convert.ToDouble(input[0], ci);