Search found 2 matches

by jasemty
Sat Feb 01, 2003 4:08 pm
Forum: Volume 3 (300-399)
Topic: 306 - Cipher
Replies: 74
Views: 19368

How large can K be?

junjieliang wrote:I didn't run through your code closely, but I guess it has to do with your algorithm. Note that k can be as big as possible (ignoring integer overflow) and yet your program should run in time...:)
Will k be as large as the type "long"?
Thanks. :o
by jasemty
Sat Jan 11, 2003 11:15 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193136

[100] Should I read the input continuously?

In my program, should I just read all lines of input first and generated all lines of output at the end?
I got "wrong answer" from the online judge system, but I found that I get correct answer when I input manually.
Thank you for your attention.

Go to advanced search