2 Solution for NEERC'2008 Problem X: Xtrapolation
4 Note: this solution attempts to check correctness of the input
10 public class xtra_re
{
11 private static final int MAX_NUM
= 1000000000;
12 private static final int MAX_COUNT
= 1000;
14 public static void main(String
[] args
) throws Exception
{
18 void go() throws Exception
{
19 BufferedReader in
= new BufferedReader(new InputStreamReader(System
.in
));
20 PrintStream out
= System
.out
;
24 int num
= Integer
.parseInt(in
.readLine());
27 assert num
> 0 && num
<= MAX_NUM
;
29 assert count
<= MAX_COUNT
;