Search found 1 match

by amzad.ethan
Thu Jan 30, 2014 6:37 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 320871

Re: If you get WA in problem 100, read me before post!

Here is my code. can anyone tell me why I have got WA???
import java.util.Scanner;
class Main
{
public static void main(String [] args)
{
Scanner e=new Scanner(System.in);
while (e.hasNext())
{
int p=0;
int r=0;
int i= e.nextInt();
int j = e.nextInt();
if (j<i)
{
p=i;
r=j;
int temp=i ...

Go to advanced search