Search found 1 match

by ppponline
Sun May 08, 2005 12:35 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320000

[Java] 100 , Wrong answer?... Who can help me?

import java.io.*;
import java.util.*;

class Main {
public static void main(String[] args) {
int i;
int j;
while(true){
String s=getLine();
StringTokenizer parser=new StringTokenizer(s);
if((parser.countTokens())!=2){
break;
}
else{
i=Integer.parseInt(parser.nextToken());
j=Integer ...

Go to advanced search