thanks
I changed my code.
System.out.println(input + " " solution(i, j));
-->
System.out.println(i + " " + j + " " solution(i, j));
-->
System.out.print(i + " " + j);
System.out.println(" " + solution(i, j));
but i got all WA.
if i have miss understand your advice, please give me the example.
Search found 2 matches
- Mon Jul 21, 2008 2:40 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319809
- Fri Jul 18, 2008 7:41 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319809
Re: 100
when input is testcase, output is correct.
but i got WA.
please help me TT
import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
try
{
Scanner scan = new Scanner(System.in);
String input;
int i, j, k;
for(;scan.hasNext();)
{
input = scan.nextLine ...
but i got WA.
please help me TT
import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
try
{
Scanner scan = new Scanner(System.in);
String input;
int i, j, k;
for(;scan.hasNext();)
{
input = scan.nextLine ...