Vedansh and Fibonacci
Practice
4.5 (2 votes)
Easy Medium
Math
Problem
85% Success 1698 Attempts 30 Points 0.5s Time Limit 256MB Memory 1024 KB Max Code
Noel loves to play with Numbers . so this time , Noel challenges Vedansh to check whether given number is Fibonacci or not.
Since Vedansh is poor in mathematics , help him to check whether given number is Fibonacci number or not.
INPUT:
first line of input contains number of Test-cases. then each line follows with a number N.
OUTPUT:
For each Test-case , output "YES" if number is Fibonacci else output "NO" , in new line.
CONSTRAINTS:
1<=T<=10
1<=N<=10^70
Submissions
Please login to view your submissions
Similar Problems
Points:30
5 votes
Tags:
MathematicsBasic MathMath
Points:30
7 votes
Tags:
Basic MathEasy-MediumMathematicsMathematics
Points:30
29 votes
Tags:
MathematicsEasy-MediumMathematicsMathamatics
Editorial