package cn.io.com;
public class DiGui {
	public static void main(String[] str) {
		/*int[] arr=new int[20];
		arr[0]=1;
		arr[1]=1;
		arr[2]=arr[0]+arr[1];
		
		for (int x=2;x<arr.length;x++) {
			arr[x]=arr[x-2]+arr[x-1];
		}
		//System.err.println(arr[19]);
		int a=1;
		int b=1;
		for(int x=0;x<18;x++){
			int temp=a;
			a=b;
			b=temp+a;
		}
		System.err.println(b);*/
		System.out.println(fib(20));
	}
	private static int fib(int n) {
		if(n ==1 || n ==2){
			return 1;
		}else {
			return fib(n-1)+fib(n-2);
		}
		
	}
    
}
 最近下载更多
最近下载更多
                
                邈话12123     LV9
                2020年8月11日
            
            
        
                whywhywhy     LV10
                2019年8月29日
            
            
        
                低调人     LV38
                2019年7月11日
            
            
        
                Lfa123     LV3
                2018年11月17日
            
            
        
                番茄甜酱     LV3
                2018年9月12日
            
            
        
                EQ666666     LV12
                2018年8月30日
            
            
        
                海乐神     LV4
                2018年7月25日
            
            
        
                sunboris514     LV8
                2018年1月4日
            
            
        
                dengchao2233     LV3
                2017年6月1日
            
            
        
                EthanDCX     LV2
                2017年4月10日
            
            
         最近浏览更多
最近浏览更多
                
                浪里格朗     LV4
                2023年1月31日
            
            
        
                luozf1990     LV3
                2022年1月6日
            
            
        
                159753yzy    
                2021年12月13日
            
            
                    暂无贡献等级
            
        
                yjl19991127     LV2
                2021年5月8日
            
            
        
                2196316269     LV10
                2021年2月24日
            
            
        
                gaoyangzhi     LV1
                2021年1月25日
            
            
        
                b5655021     LV1
                2020年12月25日
            
            
        
                李海洋     LV12
                2020年11月2日
            
            
        
                邈话12123     LV9
                2020年8月8日
            
            
        
                wkc     LV21
                2020年7月26日
            
            
        
 
                 
     
                