BestCoder Round #50 (div.2) 1003
来源:互联网 发布:工具书阅读软件 编辑:程序博客网 时间:2024/05/21 17:26
#include <iostream>#include <cstdio>#include <cstring>#include <queue>#include <stack>#include <algorithm>#include <cmath>#define LL long long#define INF 0x3f3f3f3fusing namespace std;LL a[65] = {0,1,2,3};int main(){ int n; for(int i=4;i<=60;i++) a[i] = a[i-1]+ a[i-3]+1; while(cin>>n) cout<<a[n]<<endl; return 0;}
0 0
- BestCoder Round #50 (div.2) 1003
- BestCoder Round #50 (div.2)
- BestCoder Round #50 (div.2)
- BestCoder Round 50 (div 2)
- BestCoder Round #50 (div.2)
- #BestCoder Round #50 (div.2)
- BestCoder Round #50 (div.2)
- BestCoder Round #63 (div.2)1003matrix
- BestCoder Round #64 (div.2) 1003Array
- BestCoder Round #50 (div.2) 1001
- BestCoder Round #50 (div.2) 1001
- BestCoder Round #11 (Div. 2)
- BestCoder Round #11 (Div. 2)
- BestCoder Round #54 (div.2)
- BestCoder Round #56 (div.2)
- BestCoder Round #58 (div.2)
- BestCoder Round #59 (div.2)
- BestCoder Round #59 (div.2)
- 【Android UI】ViewPage
- 深入理解Aop编程思想
- Cocos2d-x学习笔记(五)—— 常见UI界面(未完全)
- C++面向对象高级开发No.1 - Class Without Pointer
- leetcode 105 —— Construct Binary Tree from Preorder and Inorder Traversal
- BestCoder Round #50 (div.2) 1003
- java特殊对象及其应用2(时间计算)
- HDU 4940 Destroy Transportation system(上下界网络流)
- C++面向对象高级开发No.2 - Class With Pointer
- poj 2481 Cows 树状数组
- 【笔试】7、统计出其中英文字母、空格、数字和其它字符的个数
- 黑马程序员--java基础--基础语法
- makefile 多目标和多规则
- UITableView