题目描述:一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法。输入:输入可能包含多个测试样例,对于每个测试案例,输入包括一个整数n(1long
long stair[71];void getStair(void);int main(){ int n; ...
分类:
其他好文 时间:
2014-05-26 20:37:07
阅读次数:
218
父表 子表
了解unsaved-value,需要知道如下知识点:1.unsaved-value默认值是null2.id的type标签属性可以标示为:
【1】基本对象类型如int,long 【2】对象类型,...
分类:
系统相关 时间:
2014-05-26 15:08:42
阅读次数:
325
近日在做项目时遇到非必现crush,具体异常信息为:// Short Msg:
java.lang.IllegalStateException// Long Msg: java.lang.IllegalStateException: The
content of the adapter has ch...
分类:
移动开发 时间:
2014-05-26 10:08:36
阅读次数:
590
数据库中存储的信息主要有:数字、时间、文字、图片、唯一标示等。针对数字有:bit,tinyint,smallint,int,long,decimal,float。长度从一个位逐个字节(8位)的增加。时间:date,datetime.文字:char,varchar,nvarchar.唯一标示有:tim...
分类:
数据库 时间:
2014-05-26 09:12:53
阅读次数:
218
UVA 10843 - Anne's game
题目链接
题意:题意说得挺绕的,其实本质上就是求n个点,可以接连出多少种不同的生成树
思路:这是Caylay定理,网上能找到证明,结果为nn?2,然后利用快速幂去求解。
代码:
#include
#include
const int long long MOD = 2000000011;
int t;
long long n;...
分类:
其他好文 时间:
2014-05-26 03:36:35
阅读次数:
278
http://poj.org/problem?id=2449
大致题意:给出一个有向图,求从起点到终点的第K短路。
K短路A*算法讲解:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define LL long...
分类:
其他好文 时间:
2014-05-24 23:39:47
阅读次数:
352
首先,在之前,我不是一个 Python玩家,我只是一个使用者,需要即取,现在,我要认真学习和记录,正确称为一个Python的玩家。
说明,这明显不是教程,是我自己理解并记录的笔记而已。
Python有五个标准的数据类型:
Numbers(数字)String(字符串)List(列表)Tuple(元组)Dictionary(字典)
数字有四种数值类型:int,long ,float...
分类:
编程语言 时间:
2014-05-24 23:07:59
阅读次数:
387
唉! 有用的拿去吧。 直接可以用。 1 package com.tai.use; 2 3 import
java.text.SimpleDateFormat; 4 5 public class DataUtil 6 { 7 /** 8 * 时间格式转换,将字...
分类:
其他好文 时间:
2014-05-24 12:47:52
阅读次数:
439
1 package com.tai.use; 2 3 import
java.text.DateFormat; 4 import java.text.SimpleDateFormat; 5 import
java.util.Calendar; 6 import java.util.Date; 7.....
分类:
其他好文 时间:
2014-05-24 11:51:15
阅读次数:
302
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1228
1、 没读清题就交-----a==0 && b==0 我以为zero zero借书
2、范围估计,100+100。。。。
3、代码设计,,,,
#include
#include
using namespace std;
#define SIZE 111
#define ll long...
分类:
其他好文 时间:
2014-05-22 18:46:45
阅读次数:
513