- 博客(15)
- 资源 (1)
- 收藏
- 关注
原创 poj 1716 Integer Intervals(差分约束系统)
Integer IntervalsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 13437 Accepted: 5711DescriptionAn integer interval [a,b], a Write a program that: f
2016-01-28 17:29:53 660
原创 poj 1201Intervals (差分约束系统)
IntervalsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 23864 Accepted: 9048DescriptionYou are given n closed, integer intervals [ai, bi] and n integ
2016-01-28 17:05:48 747
原创 字符串哈希模版
const int Max = 26;int ans;struct node{ char str[80]; node *next; node():next(0){}}*Head[100010];void Init(){ memset(Head,0,sizeof(Head));}bool Hash(char *s){ int len = s
2016-01-28 09:29:30 542
原创 poj 3007 Organize Your Train part II (字符串哈希)
这应该是一道考STL的题,然而用STL试过2^n遍后,只剩下伤心与落泪没办法,还是得用字符串哈希#include #include #include #include #include #include #include #include #include #include #include #include #include #define RR freop
2016-01-28 09:25:32 1413
原创 大数模板
acm竞赛版#include#include#include#includeusing namespace std;#define MAXN 9999#define MAXSIZE 10#define DLEN 4class BigNum{private: int a[500]; //可以控制大数的位数 int len; //大数长度
2016-01-27 20:51:55 476
原创 poj 3096 (STL map)
对STL的map的考察不懂得map的童鞋请出门左转http://blog.csdn.net/code_kk/article/details/50591943#include #include #include #include #include #include #include #include #include #include #include #include
2016-01-27 20:37:37 539
原创 Linux 常用命令
(一)文件、目录操作命令 (1)ls命令 功能:显示文件和目录的信息 ls 以默认方式显示当前目录文件列表 ls -a 显示所有文件包括隐藏文件 ls -l 显示文件属性,包括大小,日期,符号连接,是否可读写及是否可执行 ls -lh 显示文件的大小,以容易
2016-01-27 16:35:25 670
原创 二分图模板
using namespace std;const int MAXN = 550;const int MAXM = 10010;int top,head[MAXM],link[MAXN];struct node{ int v,next;}edge[MAXM];bool vis[MAXN];void Add(int u, int v){ edg
2016-01-27 16:11:41 700
转载 STL 整理(map、set、vector、list、stack、queue、deque、priority_queue)
向量(vector) 连续存储的元素Vectorc;c.back() 传回最后一个数据,不检查这个数据是否存在。c.clear() 移除容器中所有数据。c.empty() 判断容器是否为空。c.front() 传回地一个数据。c.pop_back() 删除最后一个数据。c.push_back(elem) 在
2016-01-27 09:08:49 392
原创 poj 3254 Corn Fields (状态压缩dp)
Corn FieldsTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 10923 Accepted: 5723DescriptionFarmer John has purchased a lush new rectangular pasture com
2016-01-26 11:58:52 538
原创 HDU 5613 Baby Ming and Binary image(扫雷地图的还原)
Baby Ming and Binary imageTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 77 Accepted Submission(s): 31Problem DescriptionBab
2016-01-24 19:23:40 742
原创 HDU 5612 Baby Ming and Matrix games (搜索)
Baby Ming and Matrix gamesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 392 Accepted Submission(s): 82Problem Description
2016-01-24 15:02:34 562
原创 poj 3122
PieTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13653 Accepted: 4679 Special JudgeDescriptionMy birthday is coming up and traditionally I'm ser
2016-01-21 21:39:50 1111
原创 poj 3273 Monthly Expense (二分)
Monthly ExpenseTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 19990 Accepted: 7884DescriptionFarmer John is an astounding accounting wizard and has
2016-01-21 21:35:31 500
原创 二进制枚举
#include #define LL long longusing namespace std;int main(){ LL n,m; cin>>n>>m; int num = 0; for(int i=1;i<=64;i++) { for(int j=0;j<i-1;j++) { LL t
2016-01-05 17:28:02 989
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人