We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #2: Even Fibonacci numbers
Project Euler #2: Even Fibonacci numbers
Contest ends in
Sort by
recency
|
620 Discussions
|
Please Login in order to post a comment
public static long fibonacci(long count){ long i= 0, k = 0, j= 1; long sum = 0; while(i
import sys
t = int(input().strip()) for a0 in range(t): n = int(input().strip()) p=0 a=0 b=1 c=0 while c a=b
b=c if c%2==0 and c
En Java
Python
int main(){ int t; cin >> t; for(int a0 = 0; a0 < t; a0++){ long n; cin >> n; long long a=2,b=8,sum=10; while((a+4*b)
}