luogu 1028数的计算
来源:互联网 发布:sql sever2017 编辑:程序博客网 时间:2024/06/07 17:14
#include<iostream>#include<cstdio>#include<cstring>using namespace std;long long int n;int i,j,k;int f[20000];int search(int t){int p=1;if(f[t]!=-1)return f[t];for(int i=1;i<=t/2;i++)p+=search(i);f[t]=p;return p;}int main(){cin>>n;memset(f,-1,sizeof f);cout<<search(n)<<endl;return 0;}
阅读全文
0 0
- luogu 1028数的计算
- luogu【P1025】数的划分
- Luogu-P1025数的划分(dp)
- P1012 拼数 luogu
- luogu P1015 回文数
- LUOGU P1036 选数
- 洛谷1028 数的计算
- 洛谷1028 数的计算
- Luogu P2240 数的计数数据加强版
- Luogu P3172 [CQOI2015]选数
- luogu【P1004】方格取数
- luogu P1004 方格取数
- luogu 2822 组合数问题
- 【题解】洛谷1028 数的计算
- 路径数的计算
- 数的计算
- 数的计算
- 数的计算
- tomcat启动异常:javax.naming.NamingException
- 移动端滑动加载
- 数组练习
- 《剑指offer》刷题笔记(综合):把字符串转换成整数
- ssh
- luogu 1028数的计算
- MyEclipse6.5乱码字符集下拉选择不见了无法选择
- machine learning yearning 7 and 8
- SVN简介
- struts2中获取请求参数
- java
- 递归求最大公约数
- 深入理解QT的SIGNAL\SLOT机制(二):QMetaObject相关知识
- 算法---小易喜欢的单词