General Submission Q + Wrong Answer->100 The 3n + 1 problem

All about problems in Volume I. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

General Submission Q + Wrong Answer->100 The 3n + 1 problem

Postby phillinux » Mon Apr 09, 2012 7:24 pm

So, iam a new self learning programmer and though i know my submissioned codes are not the fastest.
Would you please look over
3n + 1 problem{C++} http://codepad.org/UiOoSncX

and give me a hint on what topic i should definitely check out.

They say my submissioned Code is Wrong (Wrong Answer) though the time cap is 3 seconds and according to the submission page mine takes 0.264s and as far as i tested my code does exactly what is asked for.

Iam Using CodeBlocks IDE(nightly build debugger branch) on Windows7x64

I realy like to play around with problems but it gets me a bit discouraged when i cant find appropiate information, learning material and when i submit sth it always says wrong answer, despite that i only now the internet to ask :/ help me out!
thx in advance
phillinux
New poster
 
Posts: 1
Joined: Mon Apr 09, 2012 6:55 pm

Re: General Submission Q + Wrong Answer->100 The 3n + 1 prob

Postby brianfry713 » Mon Apr 09, 2012 10:02 pm

What if i>j?
brianfry713
Guru
 
Posts: 1742
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: General Submission Q + Wrong Answer->100 The 3n + 1 prob

Postby invadrFlip » Fri Aug 10, 2012 8:01 am

What if i>j?

Nice catch brian. I hate it when they do that though. They should atleast show an example of this happening in the sample input.
invadrFlip
New poster
 
Posts: 8
Joined: Fri Aug 10, 2012 7:48 am


Return to Volume I

Who is online

Users browsing this forum: No registered users and 1 guest