thank you very much...........
l got accepted.......................
Search found 2 matches
- Mon Aug 10, 2009 3:10 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320772
- Fri Aug 07, 2009 8:00 pm
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 320772
help me pls.......
#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#define max 100001
using namespace std;
int main()
{
int n,t;
int v[max];
int i;
v[0] = 0 ;
v[1] = 1 ;
v[2] = 2 ;
for(i = 3 ; i < max ; i++ )
{
t = 1 ;
n = i;
while( n > 1 )
{
if( n%2 == 0 )
{
if( n < i ...
#include<vector>
#include<algorithm>
#include<cstdio>
#define max 100001
using namespace std;
int main()
{
int n,t;
int v[max];
int i;
v[0] = 0 ;
v[1] = 1 ;
v[2] = 2 ;
for(i = 3 ; i < max ; i++ )
{
t = 1 ;
n = i;
while( n > 1 )
{
if( n%2 == 0 )
{
if( n < i ...