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 1010. Discrete Function

Why do i get W/A ?
Posted by Costel::icerapper@k.ro 21 Feb 2002 02:06
[code deleted]

Edited by moderator 02.01.2020 18:50
Look at the constrain again and carefully, you might see something...
Posted by MadPsyentist/Sam 21 Feb 2002 02:45
[code deleted]

Edited by moderator 02.01.2020 18:51
Re: Why do i get W/A ? -> Overflow?
Posted by Vinicius Fortuna 21 Feb 2002 07:06
Have you thought about a possible overflow?
Why do i get Compilation Error on this ?
Posted by Costel::icerapper@k.ro 21 Feb 2002 14:48
[code deleted]

Edited by moderator 02.01.2020 18:52
Re: Why do i get Compilation Error on this ?
Posted by Vinicius Fortuna 21 Feb 2002 18:48
I'm not a Pascal expert (I use C), but may be you are using a 16-bit
compiler and the array is too big?
Anyway, if you think a bit more you will see that an array is
unecessary.

> program timus1010;
> const
>   maxn=100000;
> type
>   ta=array[1..maxn] of double;