Fibonacci Again(多次取模控制范围)
来源:互联网 发布:licecap for mac 下载 编辑:程序博客网 时间:2024/06/05 18:18
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.
Print the word "no" if not.
Sample Input
012345
Sample Output
nonoyesnonono
Author
阅读全文
0 0
- Fibonacci Again(多次取模控制范围)
- HDU1021 Fibonacci Again 循环节||取模
- HDU 1848 Fibonacci again and again(每次只能取fibonacci数的NIM)
- Fibonacci Again(HDU1021)
- hdu1848 Fibonacci again and again(博弈)
- 【HDU1848】Fibonacci again and again (博弈论)
- hdu 1021 Fibonacci Again(斐波那契数列,取余)
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- Fibonacci Again
- 内部静态类和内部类
- 梦境
- 基于Arduino Due的FreeRTOS程序设计(AtmelSAM3X8E)之二
- Robotframework使用DatabaseLibrary连接mysql数据库
- 以太坊源码(01):P2P网络及节点发现机制
- Fibonacci Again(多次取模控制范围)
- 1018. 锤子剪刀布 (20)
- 欢迎使用CSDN-markdown编辑器
- 15 内核里leds-gpio设备驱动的设备树方法
- 局部加权回归(Locally weighted linear regression)
- 在程序开始运行时,系统自动打开3个标准文件:标准输入、标准输出、标准出错输出
- java大量变量的非空校验
- org.springframework.http.ResponseEntity
- 【CSS.DIV】总结