摘要: 模板题 hdu2222: 查询主串中出现过几种模式串。 1 #include 2 #define rep(i, a, b) for (int i = a; i = b; i--) 5 #define pb push_back 6 #define mp make_pair 7 #define cl... 阅读全文
posted @ 2015-11-19 17:41 y7070 阅读(180) 评论(0) 推荐(1) 编辑
摘要: 2015年11月18日 uoj模板题: 1 #include 2 #define rep(i, a, b) for (register int i = a; i = b; i--) 4 #define REP(i, a, b) for (int i = a; i pii;15 const in... 阅读全文
posted @ 2015-11-19 17:21 y7070 阅读(305) 评论(0) 推荐(1) 编辑
摘要: 论文链接: http://wenku.baidu.com/link?url=vEcfxpqAvGRf6JL9IL2R6v8plBgPnaP3tKp5niOBmoajk0y4CcpwFzL4SkfGS9SC3Ziaipq2ab1-Mfu04OhPk8deNIro2WVMlWX_A7dsc3e 1... 阅读全文
posted @ 2015-11-18 01:06 y7070 阅读(457) 评论(0) 推荐(0) 编辑
摘要: D1T1> 神奇的幻方 模拟即可。 1 #include 2 #include 3 #include 4 #define rep(i, a, b) for (int i = a; i = b; i--) 6 #define REP(i, a, b) for (int i = a; i pi... 阅读全文
posted @ 2015-11-18 00:54 y7070 阅读(492) 评论(0) 推荐(1) 编辑
摘要: 转自::http://blog.csdn.net/luyuncheng/article/details/11674123—Built-inFunction:int __builtin_ffs (unsigned int x)Returns one plus the index of the leas... 阅读全文
posted @ 2015-10-24 11:21 y7070 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Mayor's postersTime Limit:1000MSMemory Limit:65536KTotal Submissions:50888Accepted:14737DescriptionThe citizens of Bytetown, AB, could not stand that ... 阅读全文
posted @ 2015-08-24 17:11 y7070 阅读(210) 评论(0) 推荐(0) 编辑
摘要: C. Lengthening Stickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given three sticks ... 阅读全文
posted @ 2015-08-23 15:05 y7070 阅读(392) 评论(0) 推荐(1) 编辑
摘要: Who Gets the Most Candies?Time Limit:5000MSMemory Limit:131072KTotal Submissions:11955Accepted:3734Case Time Limit:2000MSDescriptionNchildren are sitt... 阅读全文
posted @ 2015-08-22 16:39 y7070 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 描述小 B 最近迷上了华容道,可是他总是要花很长的时间才能完成一次。于是,他想到用编程来完成华容道:给定一种局面,华容道是否根本就无法完成,如果能完成,最少需要多少时间。小 B 玩的华容道与经典的华容道游戏略有不同,游戏规则是这样的:在一个 n*m 棋盘上有 n*m 个格子,其中有且只有一个格子是空... 阅读全文
posted @ 2015-08-18 22:53 y7070 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 描述A 国有 n 座城市,编号从 1 到 n,城市之间有 m 条双向道路。每一条道路对车辆都有重量限制,简称限重。现在有 q 辆货车在运输货物,司机们想知道每辆车在不超过车辆限重的情况下,最多能运多重的货物。格式输入格式第一行有两个用一个空格隔开的整数 n,m,表示 A 国有 n 座城市和 m 条道... 阅读全文
posted @ 2015-08-18 09:15 y7070 阅读(302) 评论(0) 推荐(1) 编辑