题意:n个ren m个棍子 每个棍子可以与i个人结合
问最大有多少个结合#include#includeusing namespace std;int map[111][111];int fa[111];int
v[111];int n,m;int dfs(int x){ for(int i=...
分类:
其他好文 时间:
2014-05-01 13:22:34
阅读次数:
422
注:本文翻译自Google官方的Android Developers
Training文档,译者技术一般,由于喜爱安卓而产生了翻译的念头,纯属个人兴趣爱好。原文链接:http://developer.android.com/training/contacts-provider/retrieve-de...
分类:
移动开发 时间:
2014-05-01 10:39:25
阅读次数:
711
[1]The import com.baidu.mapapi.map.Geometry
conflicts with a type defined in the same
file解决:百度api包下的Geometry和某个类名相冲突,将类名换成另外的名字,不要和百度相关类里面的类名相同[2]jav...
分类:
移动开发 时间:
2014-05-01 08:56:27
阅读次数:
648
[cpp]view
plaincopyBEGIN_MESSAGE_MAP(CTipListCtrl,CListCtrl)//{{AFX_MSG_MAP(CTipListCtrl)ON_WM_MOUSEMOVE()ON_WM_DESTROY()//}}AFX_MSG_MAPEND_MESSAGE_MA...
分类:
移动开发 时间:
2014-05-01 07:34:41
阅读次数:
588
这几天着手解决程序的性能优化。什么是系统性能,包括什么,就不说了,放google搜一下就有了。找到了酷壳里的两篇文章《代码优化概要》、《性能调优攻略》以及阿姆达尔定律,有几点体会:1.阿姆达尔定律是说对某一个模块的改进对系统性能的优化程度,取决于该模块的调用频率,或者该模块的执行时间占程序总执行的比...
分类:
其他好文 时间:
2014-05-01 04:03:07
阅读次数:
337
Author:DriverMonkey
Mail:bookworepeng@Hotmail.com
Phone:13410905075
QQ:196568501
#include
#include
#include
#include
#include
#include
using namespace std;
class a_t
{
publi...
分类:
其他好文 时间:
2014-04-29 13:35:21
阅读次数:
598
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
...
分类:
其他好文 时间:
2014-04-29 13:28:21
阅读次数:
398
实现一个登陆系统。
思路:
1 使用map,在map中的就是已经注册的了
2 使用数据结构保存用户名,是否登陆和密码
3 使用if else判断处理第一个字符串-命令
类似很多人都写的什么图书馆管理系统,什么信息系统之类的登陆控制管理,都是很简单的东西,一步一步写就不会错了,完成速度相当于打字速度。...
分类:
其他好文 时间:
2014-04-29 13:16:21
阅读次数:
298
struts 值栈 通过get set方法 方便的获取,设置属性值 例如从jsp页面传来的参数。。。从Action设置jsp所要回显的内容...
分类:
其他好文 时间:
2014-04-29 13:16:21
阅读次数:
256
代码来自于这里
https://code.google.com/p/stanford-cs193g-sp2010/source/browse/trunk/tutorials/sum_reduction.cu...
分类:
其他好文 时间:
2014-04-29 13:13:20
阅读次数:
324