我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Fibonacci Again 是怎么写的

Problem Description
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).

Input
Input consists of a sequence of lines, each containing an integer n. (n < 1,000,000).

Output
Print the word "yes" if 3 divide evenly into F(n).

Print the word "no" if not.

Sample Input
0
1
2
3
4
5

Sample Output
no
no
yes
no
no
no

近期文章

  • Big Number 大数问题
  • A Mathematical Curiosity 是怎么写的
  • Constructing Roads In JGShining's Kingdom 如何完成代码
  • Delta-wave 程序设计
  • jdbc连接数据库,查询成功返回数据但是还是报错java.sql.SQLException: Operation not allowed after ResultSet closed 这是怎么回事?
  • Biker's Trip Odometer编写
  • textview超链接,点击无反应
  • Easier Done Than Said?
  • Fire Net 程序不会完成
  • Biker's Trip Odometer 计算问题
  • Dividing 程序的编程
  • Girls and Boys 编程思想
  • Entropy 字符问题
  • Wooden Sticks
  • To The Max 代码怎么做的
  • Human Gene Functions 方程问题
  • 这是一个关于C++ new 的用法问题
  • Human Gene Functions 方程问题
  • Matrix Chain Multiplication 编写
  • Online Judge 的问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华