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 1484. Film Rating

WA14, Time limit exceeded
Posted by mmmDanon 25 Feb 2017 14:11
Please tell me what could be the problem...
WA14, Time limit exceeded, Time work 1.014

Visual C#:


if (x!=10.0){
    sum=ToInt32((x+0.05)*n);
    while (sum/n>=x+0.049999999999) sum--;
    }
    else
    {
        sum=x*n;
    }
while  (((ans+sum)/(ans+n))>=y+0.0499999999999 ) ans++;
Re: WA14, Time limit exceeded
Posted by Molchun 4 Oct 2019 18:48
у меня та же ошибка, С# просто медленно работает. Это же решение на ++ заходит