Search found 2 matches

by 25487AH
Fri Apr 11, 2003 5:43 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317862

WA whit 100 in JAVA, but i dont know why

Hi.
i thing my code works fine but i still have a wa. I have some tab cases to improve time.

(when the input is: 1 1000000 the output is: 525)

thats my code, can some one tell me whats wrong please?:
[java]
/* @BEGIN_OF_SOURCE_CODE */
// @JUDGE_ID: 25487AH 100 Java

import java.io.*;
import java ...
by 25487AH
Fri Apr 11, 2003 5:26 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 67693

WA to, and i dont know why

Hi, im having troubles whit my code to, can some one help me please?

PD: if i have:
2
9 9
9 9

the output is:
98
(because its M digits, isnt?)

thats my code:

[java]
/* @BEGIN_OF_SOURCE_CODE */
// @JUDGE_ID: 25487AH 10013 Java

import java.io.*;
import java.util.StringTokenizer;
import java.lang ...

Go to advanced search