import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++) { int m=sc.nextInt(); int a=1, b=2,c=2; if(m==1) c=0; if(m==2) c=1; for (int j = 4; j <=m; j++) { c=a+b; a=b; b=c; } System.out.println(c); } } }
0.0分
1 人评分