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 1582. Bookmakers

To Admins - TLE 5. Wrong input data
Posted by SKYDOS [Vladimir SU] 10 Aug 2010 13:53
First I used my own method for reading data, this function: http://paste.ubuntu.com/475799/ GOT TLE 5...

Then used this method:
double[] data = Console.ReadLine().Split().Select(s => double.Parse(s)).ToArray();
GOT AC...

Whats the 5 test? is it bug in my reading function or what?
Need help.

PS
Check last @Crash@: http://acm.timus.ru/status.aspx?space=1&num=1582&author=73720

Code:
if (data[0].IndexOf('.') == -1 || data[1].IndexOf('.')==-1 || data[2].IndexOf('.')==-1) throw new System.DivideByZeroException();

Some of numbers are NOT with floating point.

From problem statement:
В единственной строке через пробел записаны 3 числа с плавающей точкой k1, k2 и k3.

Edited by author 10.08.2010 14:02
Re: To Admins - TLE 5. Wrong input data
Posted by Vladimir Yakovlev (USU) 10 Aug 2010 21:18
100 - is the floating point number too.
Re: To Admins - TLE 5. Wrong input data
Posted by Andrew Hoffmann aka SKYDOS [Vladimir SU] 10 Aug 2010 21:22
I think it should be "100.0"
Vladimir Yakovlev (USU) wrote 10 August 2010 21:18
100 - is the floating point number too.