F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

Fibonacci

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 4716    Accepted Submission(s): 1178


Problem Description
Following is the recursive definition of Fibonacci sequence:
$$
F_i=
\begin{cases}
0& \text{i = 0} \\
1& \text{i = 1} \\
F_{i-1} + F_{i-2}& \text{i > 1}
\end{cases}
$$
Now we need to check whether a number can be expressed as the product of numbers in the Fibonacci sequence.
 

Input
There is a number \(T\) shows there are \(T\) test cases below. ($T \leq 100,000$)
For each test case , the first line contains a integers n , which means the number need to be checked.
$0 \leq n \leq 1,000,000,000$
 

Output
For each case output "Yes" or "No".
 

Sample Input
3 4 17 233
 

Sample Output
Yes No Yes
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 09:55:47, Gzip enabled