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 1328. Fireball

to admins
Posted by strider 21 Jan 2009 09:30
In my solution there is a product "width * N" squared, wich in maximum (1000*100)^2 = 10^10  gives more than INT_MAX. I use signed int and I've still got AC, while my program gives -1.#IND on the test
1000 1000
100
1 1 4 5

I suppose you should add boundary tests or soften condition to, for example, "max width and hight <= 100".
Re: to admins
Posted by Sandro (USU) 22 Jan 2009 10:45
Statement is updated. Read Site news.
Re: to admins
I can create new tests for this problem with N up to 100. Since with current limitations the problem has much more easier solution...