这题时简单的dp题,不过我也就能写写这样简单的题了,不过注意一点。
没什么说的,直接按照题目顺序就可以了。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int dp[21][21][21];
int recursion(int a,int b,int c)
{
i...
分类:
其他好文 时间:
2015-03-10 23:19:49
阅读次数:
342
项目中用到的,要求一次下载30张图片。开始时使用谷歌bitmap fun中提供的ImageFetcher来下载,但是发现一个蛋疼无比现象,图片总是莫名其妙的少几张。 ? ?排除了图片地址存在无效链接外,怀疑是并发下载线程个数...
分类:
其他好文 时间:
2015-03-09 13:02:34
阅读次数:
138
html事件处理程序:直接写在html标签中的事件处理程序 <div onclick="fun()"></div> DOM0级事件处理程序(无兼容性问题) ?document.getElementById(‘fdiv‘).onclick = fun;?function fun() {? alert(1)? } ...
分类:
其他好文 时间:
2015-03-09 11:11:55
阅读次数:
132
&按位与如果两个相应的二进制位都为1,则该位的结果值为1,否则为0int fun(int n){ return (n&1); //返回1表示奇数,0表示偶数。 }根据位与的运算规则,如果两个相应的二进制位都为1,则改为的结果值为1,否则为0.而n&1,其实关键在于最后一位二...
分类:
编程语言 时间:
2015-03-09 10:37:44
阅读次数:
153
特点 完全基于浏览器 类似Office操作、仿纸质填报 全HTTP?Get方式API,方便集成 模板、数据、结果全程云存储,只需要记录ID 支持企业内部部署 ? 合同模板创建 http://xdoc.sinaapp.com/_[模板ID].xdoc?_fun...
分类:
其他好文 时间:
2015-03-07 22:53:41
阅读次数:
213
def pfname(fun):
def wraper(*args,**kwargs):
print fun.__name__
return fun(*args,**kwargs)
return wraper
class ContextWith():
@pfname
def __enter__(self):
return self
@pfname
def __exit_...
分类:
编程语言 时间:
2015-03-06 15:57:49
阅读次数:
159
这题只要根据题目,利用向量把点一个个求出来计算面积即可
不过据说有一种证明方法可以证明面积是1/7的原三角形
代码:
#include
#include
#include
#include
using namespace std;
int t;
struct Point {
double x, y;
Point() {}
Point(double x, d...
分类:
其他好文 时间:
2015-03-05 17:05:16
阅读次数:
113
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:
其他好文 时间:
2015-03-05 14:38:01
阅读次数:
206
int *f(),表示这个函数f,函数的返回值的类型是 int * int (*f)(),表示这是一个函数指针,它要指向一个函数才能有用,指向一个函数之后就可以用它来代替该函数,之后使用这个指针就相当于使用该函数。例程#includeint fun(int);int main(void){ ...
分类:
编程语言 时间:
2015-03-04 20:48:57
阅读次数:
154
#include
int fun(int m);
int main()
{
int n;
int m;
scanf("%d",&n);
while(n--)
{
scanf("%d",&m);
m=m+1;
printf("%d",fun(m));
printf("\n"...
分类:
其他好文 时间:
2015-03-03 20:47:00
阅读次数:
273