按图示方法,给出N个点,求一共有多少种组成方式
DP打表
#include "stdio.h"
#include "string.h"
int mod=1000000007;
__int64 dp[1010][1010],sum[1010];
int main()
{
int i,j,k,Case,n;
memset(dp,0,sizeof(dp));
me...
分类:
其他好文 时间:
2014-10-31 12:01:10
阅读次数:
138
题目:就是实现一个指数函数。直接用一个while一直乘以n词肯定是会超时的。自己写了用递归(而且是很挫的递归),测试了无数次,根据每个case去修改代码。终于可以AC了。不忍直视,自己写了好长,如下:class Solution {public: double pow(double x, in...
分类:
其他好文 时间:
2014-10-31 01:14:00
阅读次数:
274
1.安装heartbeat下载需要的源:wgetftp://mirror.switch.ch/pool/1/mirror/scientificlinux/6rolling/x86_64/os/Packages/epel-release-6-5.noarch.rpm2.安装heartbeat:yum-yinstallheartbeat*3.配置heartbeat3.1.拷贝模板配置文件:cp/usr/share/doc/heartbeat-3.0.4/ha.cf/e..
分类:
其他好文 时间:
2014-10-30 19:24:48
阅读次数:
177
mysql的版本mysql>selectversion()\G***************************1.row***************************version():5.5.39msyql默认是区分大小写的创建数据库ZPFmysql>createdatabaseZPF;QueryOK,1rowaffected(0.00sec)修改my.cnf[mysqld]下添加lower_case_table_names=1重启m..
分类:
其他好文 时间:
2014-10-30 17:19:44
阅读次数:
283
输入代码:/*
*Copyright (c)2014烟台大学计算机与控制工程学院
*All rights reserved.
*文件名称:sum.cpp
*作 者:林海云
*完成日期:2014年10月30日
*版 本 号:v1.0
*
*问题描述:
*程序输出:程序填充,使其能够输出类似“1+2”形式的值
*/
#include
using n...
分类:
其他好文 时间:
2014-10-30 15:22:37
阅读次数:
204
??
单行函数
①.字符函数
LOWER(x):将x中的每个单词都转换成小写
UPPER(x):将x中的每个单词都转换成大写
INITCAP(x): 将x中的每个单词的首字母转换成大写
CONCAT(x,y):用于将y添加到x之后,与||功能一样
SUBSTR(x,start[,length]): 用于从x中取得从start位置开始的一个子字符串,
可选参数length:指...
分类:
数据库 时间:
2014-10-30 15:19:16
阅读次数:
303
function clearForm(objE) { $(objE).find(':input').each( function() { switch (this.type) { case 'passsword': ...
分类:
Web程序 时间:
2014-10-30 14:59:44
阅读次数:
196
我们有可能会写出或者遇到类似这样的代码:
C/C++ switch (expr1)
{
case label11:
switch (expr2)
{
case label21:
// do something
break;
case label22:
...
分类:
编程语言 时间:
2014-10-30 11:52:44
阅读次数:
235
1、句式:if...then.判断赋值例:if RadioButton1.Checked then sex:='男' else if RadioButton2.Checked then sex:='女'2、case...of...end;例: case Radio...
分类:
其他好文 时间:
2014-10-30 01:33:10
阅读次数:
135
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
每一次你可以爬一层或者两层,计算爬n层你...
分类:
其他好文 时间:
2014-10-30 00:24:42
阅读次数:
202