标签:string stat time port int java 训练 system ++
4
5
1 import java.math.BigInteger; 2 import java.util.Arrays; 3 import java.util.Scanner; 4 5 6 public class Main { 7 static int n; 8 static int m; 9 public static void main(String[] args) { 10 Scanner input = new Scanner(System.in); 11 n = input.nextInt(); 12 f(n); 13 System.out.println(m); 14 15 } 16 public static void f(int n){ 17 if(n>=2){ 18 f(n-1); 19 f(n-2); 20 }else if(n==1){ 21 f(n-1); 22 }else{ 23 m++; 24 } 25 26 } 27 }
标签:string stat time port int java 训练 system ++
原文地址:http://www.cnblogs.com/lolybj/p/6618108.html