题目大意:只能按照格子上的数字*方向走,从左上走到右下Sample Input42331121312313110Sample Output3直接记忆化搜索,注意是0的情况 1 #include 2 #include 3 #include 4 #include 5 #include 6 #includ...
分类:
其他好文 时间:
2015-04-25 11:56:26
阅读次数:
115
题目大意:几根棒子能否组成一个正方形Sample Input3 //测试组数4 1 1 1 1 //棒子数目以及每根棒子的长度5 10 20 30 40 508 1 7 2 6 4 4 3 5Sample Outputyesnoyes虽然不用pos直接从0开始枚举也可以有答案,但会超时,加个pos,...
分类:
其他好文 时间:
2015-04-25 10:42:16
阅读次数:
116
题目大意:两个东西朝相同方向移动Sample Input4 4XXXX.Z...XS.XXXX4 4XXXX.Z...X.SXXXX4 4XXXX.ZX..XS.XXXXSample Output11Bad Luck!由于两个棋子必然有一个移动。所以假设其中一个一直移动即可,比较水了 1 #incl...
分类:
其他好文 时间:
2015-04-25 10:33:38
阅读次数:
125
题意:告诉你两个字符串a和b,要求对a进行栈的操作而产生b串,输出操作的顺序,如果有多组输出就按字典序输出。Sample InputmadamadammlongshortSample Output[i i i i o o o i o oi i i i o o o o i oi i o i o i o...
分类:
其他好文 时间:
2015-04-25 10:32:41
阅读次数:
169
Asp.net MVC WebAPI 生成帮助文档时对于API的参数是自定义类型的会遇到本错误。API.Areas.HelpPage.HelpPageConfig 的Register 方法中 可以将以下代码注释去掉以消除该错误。//// Uncomment the following to use ...
分类:
移动开发 时间:
2015-04-24 18:50:20
阅读次数:
254
本来是拿来复习一下map的,没想搞了半天,一直wa,最后发现预处理没有处理到所有的点就是个最短路Sample Input6xiasha westlakexiasha station 60xiasha ShoppingCenterofHangZhou 30station westlake 20Shop...
分类:
其他好文 时间:
2015-04-24 18:18:53
阅读次数:
187
点击打开杭电1715
Problem Description
Fibonacci数列,定义如下:
f(1)=f(2)=1
f(n)=f(n-1)+f(n-2) n>=3。
计算第n项Fibonacci数值。
Input
输入第一行为一个整数N,接下来N行为整数Pi(1
Output
输出为N行,每行为对应的f(Pi)。
Sample...
分类:
其他好文 时间:
2015-04-23 15:46:25
阅读次数:
126
原题:http://acm.zzuli.edu.cn/problem.php?cid=1099&pid=9【描述】【输入】【输出】Sample Input3 1 10 3 10 5 3 1 2 1 3 5 1 2 3 4 5 3 1 2 1 2 4 2 5 Sample OutputYes No Y...
分类:
其他好文 时间:
2015-04-23 15:12:13
阅读次数:
133
#include
using namespace std;
class Sample
{
private:
int x;
public:
Sample () { }
Sample(int a){x=a;}
void disp(){cout<<"x="<<x<<endl;}
friend Sample operator+( Sample &s1, Sampl...
分类:
其他好文 时间:
2015-04-23 13:34:08
阅读次数:
135
主要使用的是这个第三方库:https://github.com/chrisbanes/ActionBar-PullToRefresh这里必须吐槽一下这个的文档,sample根本就是混乱的源头,最有用的说明竟然放在最后了,找了半天才点进去,然后发现竟然连每个参数属性指定的效果是什么都没说,真是体贴我啊...
分类:
其他好文 时间:
2015-04-22 23:51:36
阅读次数:
191