| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
别打我,附上小弟的性感代码.import java.io.*;
import java.util.Scanner;
import java.math.*;
public class Main {
public static void main(String[] args) throws Exception{
Scanner cin = new Scanner(new BufferedInputStream(System.in));
int N=cin.nextInt();
BigInteger A=new BigInteger("2");
BigInteger temp=A;
System.out.println(A.toString());
for(int i=2;i<=N;i++)
{
A=temp.add(BigInteger.ONE);
temp=temp.multiply(A);
System.out.println(A);
}
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator