#P5993. [PA 2014] Iloczyn
[PA 2014] Iloczyn
Description
The Fibonacci sequence is defined as follows:
-
When or , .
-
When , .
The first few terms of the sequence are .
Your task is to determine whether a given number can be represented as the product of two Fibonacci numbers.
Input Format
The first line contains an integer , representing the number of queries.
The next lines each contain an integer .
Output Format
Output a total of lines. The -th line should be TAK (yes) or NIE (no), indicating whether can be represented as the product of two Fibonacci numbers.
5
5
4
12
11
10
TAK
TAK
NIE
NIE
TAK
Hint
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号