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 1098. Questions

test
Posted by tester 28 Dec 2005 20:21
Could you tell me what the first test is?
I have used several types of data input
(reading ALL symbols, skipping all #10#13, skipping the last #10#13) but kept getting WA test 1. The sample tests work and the Joseph's algo is correct 99.99%.:(
Re: test
Posted by Burunduk1 29 Dec 2005 01:04
My AC solution skips all #10 and #13 symbols.
Re: test
Posted by tester 3 Jan 2006 16:02
Still WA1..
Could you, please, take a look at the following:

 read(ch); l:=0;
 while not eof do begin
   if (ord(ch)<>13) and (ord(ch)<>10) then begin
    inc(l);
    c[l]:=ch;
   end;
  read(ch);
 end;

Is there anything incorrect in this input?