Search found 1 match

by Elwaryn
Wed Sep 22, 2004 5:07 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184354

I get WA, but I'm not sure why. I account for i > j and use longs so there's no overflow. [java]import java.io.*; import java.util.*; class Main { public static void main (String args[]) { Main myWork = new Main(); myWork.Begin(); } static void Begin() { long i, j, max, count, k; String in, out = ""...

Go to advanced search