摘要:
1 import java.lang.*; 2 import java.util.*; 3 import java.text.*; 4 import java.math.*; 5 import java.io.*; 6 class Main 7 { 8 public static void main(String []args) 9 {10 Scanner cin=new Scanner(System.in);11 BigInteger f[]=new BigInteger[3];12 int i,n,m;13 ... 阅读全文
摘要:
1 #include<iostream> 2 #include<cmath> 3 using namespace std; 4 int a[21]={0,1}; 5 int main() 6 { 7 int n; 8 double m,l,des; 9 while(~scanf("%d",&n))10 {11 for(int i=2;i<=20;i++)12 {13 a[i]=a[i-1]+a[i-2];14 }15 if(n<=20)printf("%d\n",a[n])... 阅读全文
摘要:
1 超时: 2 import java.lang.*; 3 import java.util.*; 4 import java.text.*; 5 import java.math.*; 6 import java.io.*; 7 class Main 8 { 9 public static void main(String []args)10 {11 Scanner cin=new Scanner(System.in);12 BigInteger f[]=new BigInteger[1000];13 BigInteger g... 阅读全文
摘要:
1 import java.util.*; 2 import java.io.*; 3 import java.lang.*; 4 import java.math.*; 5 import java.text.*; 6 class Main 7 { 8 public static void main(String args[]) 9 {10 Scanner cin=new Scanner(System.in);11 int i,j=0,k=0,flags;12 BigInteger a,b,c[]=new BigInteger[... 阅读全文
摘要:
1 import java.util.*; 2 import java.math.*; 3 import java.io.*; 4 import java.lang.*; 5 import java.text.*; 6 class Main 7 { 8 public static void main(String []args) 9 {10 int n,i;11 Scanner cin=new Scanner(System.in);12 BigInteger a[]=new BigInteger[1010];... 阅读全文
摘要:
1 import java.lang.*; 2 import java.util.*; 3 import java.text.*; 4 import java.math.*; 5 import java.io.*; 6 class Main 7 { 8 public static void main(String []args) 9 {10 int n,i;11 BigInteger a1,a2,a3,a4,a5;12 Scanner cin=new Scanner(System.in);13 while(cin... 阅读全文
摘要:
1 //错排公式: 2 import java.util.*; 3 import java.math.*; 4 import java.lang.*; 5 import java.text.*; 6 import java.io.*; 7 class Main 8 { 9 public static void main(String[] args) 10 {11 int m,n,i,sum=0;12 BigInteger a[]=new BigInteger[210],des=null;13 a[1]=BigInteger.va... 阅读全文
摘要:
1 import java.io.*; 2 import java.util.*; 3 import java.math.*; 4 import java.lang.*; 5 import java.text.*; 6 class Main 7 { 8 public static void main(String[] argc) 9 {10 Scanner cin=new Scanner(System.in);11 BigDecimal a;12 int n;13 String s;14 whil... 阅读全文
摘要:
1 import java.lang.*; 2 import java.util.*; 3 import java.text.*; 4 import java.math.*; 5 import java.io.*; 6 class Main 7 { 8 public static void main(String []args) 9 {10 int n;11 BigInteger a1,a2;12 Scanner cin=new Scanner(System.in);13 while(cin.hasNext())... 阅读全文
摘要:
1 import java.io.*; 2 import java.lang.*; 3 import java.text.*; 4 import java.util.*; 5 import java.math.*; 6 class Main 7 { 8 public static void main(String[] argc) 9 {10 Scanner cin=new Scanner(System.in);11 BigInteger a1,n,i;12 while(cin.hasNextBigInteger())13 ... 阅读全文