HDU 2063
求一个二分图的最大匹配。
完全的裸题。贴代码。
#include
#include
#include
#include
#include
using namespace std;
vector G[1005];
bool check[1005];
int mac[1005];
int n;
void add_edge(int from,int to)
{
G[f...
分类:
其他好文 时间:
2014-05-02 20:57:04
阅读次数:
359
Shaass has decided to hunt some birds. There are n horizontal electricity wires aligned parallel to each other. Wires are numbered 1 to n from
top to bottom. On each wire there are some oskols sitti...
分类:
其他好文 时间:
2014-05-02 20:48:26
阅读次数:
462
Iahub accidentally discovered a secret lab. He
found there n devices ordered in a line, numbered from 1 to n from left to
right. Each device i (1?≤?i?...
分类:
其他好文 时间:
2014-05-02 15:36:19
阅读次数:
314
Write an efficient algorithm that searches for
a value in anmxnmatrix. This matrix has the following properties:Integers in
each row are sorted from l...
分类:
其他好文 时间:
2014-05-02 10:41:53
阅读次数:
267
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef...
分类:
其他好文 时间:
2014-05-02 10:33:09
阅读次数:
332
SELECT*FROM表名称LIMITM,N
。其中的m表示从第几条开始,0表示第一条;n表示一共显示几条。mysql_num_rows:取得结果行的数目。table中奇数行变色或偶数行变色:tr:nth_child(odd或even){里面写入颜色};其中odd表示奇数行,even表示偶数行。
分类:
数据库 时间:
2014-05-02 09:17:24
阅读次数:
330
Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-05-02 09:10:46
阅读次数:
252
sql%通配符可以匹配任意字符包括空字符串_通配符表示一个字符不包含空数据库命名字母数字下划线可以以数字开头但是不要用系统保留关键字尽量使用小写linux严格区分大小写名字比较长的时候使用_下划线做连接查看数据库创建showcreatedatabasedb_name查看建表语句showcreatetable..
分类:
数据库 时间:
2014-05-02 08:08:04
阅读次数:
377
常用环境设置命令1.改变data输出形式set linesize 150 pagesize
100select * from emp;2.显示/关闭 当前时间set time on/off3.set sqlprompt
"session&get:"4. 设置sqlplus登录的username和in...
分类:
数据库 时间:
2014-05-02 05:40:40
阅读次数:
400
vimsendmail.pl#!/usr/bin/perl-wuseMIME::Lite;subperl_sendmail{my$mail_to="$_[0]";收件人邮箱my$from="$_[1]";发件人邮箱my$subject="$_[2]";邮件标题my$data="$_[3]";邮件内容$sendmail=MIME::Lite->new(From=>$from,To=>$mail_to,Subject=>$subject,Data=>..
分类:
其他好文 时间:
2014-05-02 03:00:15
阅读次数:
283