Search found 1 match

by ihat
Wed Dec 22, 2010 5:31 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320261

Problem 100 (exceded time limit) C++

i don't see what the problem is


#include <iostream>
#include <fstream>

using namespace std;

//Functions
int createCycle(int startPt, int endPt);


int main()
{
ifstream in_stream;
int startNum, endNum;

in_stream.open("input.txt");
in_stream >> startNum;

while(!in_stream.eof())
{
in ...

Go to advanced search