Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

别打我,附上小弟的性感代码.

Posted by donkeyinacm at 2010-02-08 01:50:14 on Problem 1405
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator