Search found 4 matches

by jura
Thu Aug 19, 2004 11:56 pm
Forum: Volume 102 (10200-10299)
Topic: 10298 - Power Strings
Replies: 31
Views: 19529

you use brute-force and that's not good enough for very long strings. you have to think of something faster
by jura
Sat Aug 14, 2004 10:45 am
Forum: Pascal
Topic: pascal under xp
Replies: 1
Views: 6495

pascal under xp

i just want to know is free pascal supported by win xp? and if not, what pascal compiler could i use under win xp?
by jura
Fri Apr 25, 2003 5:54 pm
Forum: Volume 103 (10300-10399)
Topic: 10305 - Ordering Tasks
Replies: 59
Views: 31577

10305 - ordering tasks

Do I have a wrong approach or what?
I dunno why i get WA.


program tasks;
var level:array[1..100] of byte;
nodes:array[1..6000,1..2] of byte;
m,n,i,j:integer;
gotovo,prva:boolean;

begin
while true do
begin
readln(n,m);
if (n=0) and (m=0) then halt;

for i:=1 to m do readln(nodes[i,1],nodes ...
by jura
Thu Jan 02, 2003 11:03 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 33937

369-combinations why WA?

why do i get WA? :evil:

[pascal]program comb(input,output);
var m,n,i,j:byte;
popis:array[1..100,1..2] of boolean;
umnozak:longint;
begin
repeat
readln(n,m);
if (n=0) and (m=0) then halt;

for i:=m+1 to n do
begin
popis[i,1]:=true;
end;
for i:=1 to n-m do
begin
popis[i,2]:=true;
end ...

Go to advanced search