Search found 1 match

by Klexer
Thu Feb 05, 2004 7:15 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320897

I m gettin WA everytime i submit this
Pls help me :cry:

/*@JUDGE_ID: 42099PZ 100*/
#include<iostream>

using namespace std;

long findmax(long a,long b)
{
long i,j,k,temp,max,count;
if(a>b)
{
temp=a;
a=b;
b=temp;
}
max=1;
count=1;
for(i=a,j=i;i<=b;i++,j=i)
{
if(count>max)
{
max=count ...

Go to advanced search