Search found 4 matches

by hf_1992
Tue Nov 14, 2006 4:17 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 35836

382 WA

Del after AC
by hf_1992
Sun Nov 12, 2006 12:00 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 49195

530 WA*3 and RE*2

Here is my code

program VolumeV_530;
var n,i:longword;
function factorial(i:longword):real;
begin if i=0 then factorial:=1
else factorial:=i*factorial(i-1)
end;
function numerator(n,i:longword):real;
begin if i=0 then numerator:=1
else numerator:=(n-i+1)*numerator(n,i-1)
end;
function ...
by hf_1992
Sat Nov 11, 2006 5:13 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 77796

10055 in Pascal WA

Would anyone tell me that what's wrong with my code?

Code: Select all

program VolumeC_10055;
var n1,n2:longword;
begin
readln(n1,n2);
writeln(abs(n1-n2));
eof(input)
end.
by hf_1992
Sat Nov 11, 2006 6:49 am
Forum: Pascal
Topic: [Pascal]How to move cursor?
Replies: 1
Views: 8073

[Pascal]How to move cursor?

The following is a segment of my code
......
read(i,j);
......
writeln(max);
......
After I input i,j(enter is pressed), the cursor moves to the next line, how can I move the cursor back?

Go to advanced search