Search found 3 matches

by rezatorabi
Sun Feb 20, 2011 3:15 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319909

Re: Problem in Input Taking

Solved!!

Thanks... :)
by rezatorabi
Sun Feb 20, 2011 1:57 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319909

Re: Problem in Input Taking

Thanks sohel
You are right. It is WA.
But I can't understand what is wrong. Would you please give me the test case which you say it gives wrong answer.
It's is the final code:


import java.util.Scanner;

/**
*
* @author Reza
*/
public class Main {

public static void main(String[] args ...
by rezatorabi
Sun Feb 20, 2011 8:21 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 319909

Problem in Input Taking

Hi, Sorry, I am new, so don't blame me for my question if it is stupid.
Here is a problem: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&page=show_problem&problem=36
It hasn't said that it is going to give us the number of inputs at first! so how should I handle the input. I used ...

Go to advanced search