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 1002. Phone Numbers

it's impossible to get TLE#1... (+)
Posted by AlMag(VNTU) 18 Mar 2009 02:56
have no ideas. am i reading correctly?

    char buf[128];
    while (scanf("%s", buf)!=-1)
    {
        call = string(buf);
        if (call=="-1") break;
                ...
        }


Edited by author 18.03.2009 03:00
Re: it's impossible to get TLE#1... (+)
Posted by AlMag(VNTU) 19 Mar 2009 10:12
Please... because TLE#1 using dp is something unreal
Re: it's impossible to get TLE#1... (+)
Posted by AlMag(VNTU) 25 Mar 2009 12:43
ooh, finally i've solved it!!

thanks everyone for replying)