22 lines
472 B
Java
22 lines
472 B
Java
import java.util.*;
|
|
|
|
public class _9461 {
|
|
public static void main(String[] args){
|
|
Scanner sc = new Scanner(System.in);
|
|
int T = sc.nextInt();
|
|
long[] P = new long[101];
|
|
P[0] = 0;
|
|
P[1] = 1;
|
|
P[2] = 1;
|
|
for(int i=3; i<101; i++){
|
|
P[i] = P[i-2] + P[i-3];
|
|
}
|
|
|
|
for(int i=0; i<T; i++){
|
|
int N = sc.nextInt();
|
|
System.out.println(P[N]);
|
|
}
|
|
|
|
sc.close();
|
|
}
|
|
} |