Search found 3 matches

by dustfinger
Thu Feb 21, 2008 8:48 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319780

knascj,

I compiled your code and ran it with the following input:
echo 10 1 100 200 201 210 900 1000 | ./a.out
10 1 20
200 100 125
201 210 125
900 1000 174
sh: pause: command not found
I then I removed the System call system("pause"); and I ran the code again:
echo 10 1 100 200 201 210 900 1000 ...
by dustfinger
Thu Feb 21, 2008 8:34 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319780

mf,

You are correct! I made the appropriate change so that my code now reads from standard input and I got the Accepted verdict with a runtime of 0.720

Sincerely,

dustfinger
by dustfinger
Thu Feb 21, 2008 7:44 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319780

Submission number: #6245490
Language: c++
browser: firefox

I keep getting WA for my result. Actually, once I submit to the judge I end up back at the problem page, but when I goto my submissions then I see that the verdict was "Wrong Answer". Is that how it is suppose to work? My time is always 0 ...

Go to advanced search