Search found 1 match

by NSI
Fri Jan 23, 2004 7:39 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319809

Please, help me!
I got WA. What can I do???
This is my code:

const
maxn=1000000;

type int=integer;
real=extended;

var
n,i,a,b,max,kolvo:int;
cyc:array[1..maxn] of int;
_a,_b,_res:array[1..100000] of int;

function Rec(v:int64):int;
var
res:int;
begin
if (v<=maxn)and(cyc[v]>0) then
begin ...

Go to advanced search