Search found 2 matches

by 36495KN
Thu Sep 25, 2003 7:50 am
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 27306

by this code, 0.338 seconds, 320Kbytes

[pascal]
var s1: string;
l1, i: integer;
ch1: char;

begin
while (not eof) do begin
readln(s1);
l1:= length(s1);

for i:=1 to l1 do begin
ch1:= s1 ;
ch1:= chr((ord(ch1)) - (ord('J')) + (ord('C')));
s1 := ch1;
end;
writeln(s1);
end;
end.
[/pascal]

:D
by 36495KN
Thu Sep 25, 2003 6:46 am
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 27306

Re: help me with speed!

me too!
and I consider why it use 324KBytes for the program?
:cry:

Your PASCAL program has solved Ok the problem 458 (The Decoder)
in 3.742 seconds using as much as 324 kbytes of virtual memory.
Congratulations


the problem 458:
my pascal code run 5.1 second ,but c++ code only 0.2 seconds,why ...

Go to advanced search