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 1257. Hyphenation

Something strange...
Posted by Loky_Yuri [USTU] 15 May 2007 17:25
I now that the first test for this problem is the sample (I check it with a stupid programm which output the strings of sample, and this programm has WA#2).
And for this test my REAL program give the corret answer, but when I try to submit it I have ACCESS VIOLATION. I try even do all my arrays [1..1000] and replace string on ansistring (i write in PASCAL), but all my attempts was failed.
Can anybody help me?
PS If you want I can show my program
Re: It make me crazy!
Posted by Loky_Yuri [USTU] 16 May 2007 19:39
[Code deleted by author]

Edited by author 16.05.2007 21:22
Re: It make me crazy!
Posted by ArcSTU Team 16 May 2007 20:49
You call  CutString(str);  with str='' ant it fails

while dl <> length(str) do
begin
dl := length(str);
//if dl=0 then break;
CutString(str);      //162 string
end;


Kirill

Edited by author 16.05.2007 20:51
Re: It make me crazy!
Posted by Loky_Yuri [USTU] 16 May 2007 21:24
Thanks a lot!!!