题意: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
[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
Windows没有message
queue累世的IPC内核对象,使得在在处理IPC时少了一种传递消息的手段。利用Windows的Naming
Object可以实现一套简单的Inter-Thread消息队列。这里并不使用socket,因为一旦使用socket,就得负责port管理,很麻烦,另外在对外...
分类:
编程语言 时间:
2014-05-01 02:30:44
阅读次数:
555
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
在红黑树基础上设计map容器,在设计map时,可以明显利用的map模板类中KEY,VALUE,KEYOFVALUE的灵活运用
不多说,代码如下:
//my_map.h
#ifndef MY_MAP_H_INCLUDED
#define MY_MAP_H_INCLUDED
#include //for pair
#include"my_rb_tree.h"
using std::pair;...
分类:
其他好文 时间:
2014-04-29 13:27:21
阅读次数:
443
链接:http://soj.me/show_problem.php?pid=1007
Description
Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letter...
分类:
其他好文 时间:
2014-04-29 13:23:21
阅读次数:
293
实现一个登陆系统。
思路:
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