Search found 3 matches

by mfjuzar
Sun Mar 31, 2013 5:05 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 64729

Re: 488 - Triangle Wave WA?

brianfry713 wrote:Don't print a blank line at the start of the output.
It doesn't print any
by mfjuzar
Thu Mar 28, 2013 7:20 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 48316

Re: 490 - Rotating Sentences

Im having the same problem, but its in pascal language, the output seems to match exactly as written in the problem, whats wrong?

var
txt1,txt2: string;
i,l:integer;

begin
readln(txt1);
readln(txt2);

if length(txt1)> length(txt2) then
l:=length(txt1)
else
l:=length(txt2);

for i:= 1 to l do ...
by mfjuzar
Thu Mar 28, 2013 6:46 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 64729

488 - Triangle Wave WA?

Why did I keep getting WA? The program input and output is exactly the same as the problem example,
I'm browsing the forum for my problems but it seems that I already get my code right, I've checked the blank lines needed too, but still


var
c,i,k,wave,cases,amp,ampd,j: integer;
a,f:array [1 ...

Go to advanced search