上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 77 下一页
摘要: 11991 - Easy Problem from Rujia Liu? Though Rujia Liu usually sets hard problems for contests (for example, regional contests likeXi’an 2006, Beiji... 阅读全文
posted @ 2015-12-01 17:31 handsomecui 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 11995 - I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations:1 x Throw an element x into the bag.2 Take out ... 阅读全文
posted @ 2015-12-01 16:39 handsomecui 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 线段树转载请注明出处,谢谢!http://blog.csdn.net/metalseed/article/details/8039326持续更新中···一:线段树基本概念1:概述线段树,类似区间树,是一个完全二叉树,它在各个节点保存一条线段(数组中的一段子数组),主要用于高效解决连续区间的动态查询问... 阅读全文
posted @ 2015-12-01 15:54 handsomecui 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 为了肾六时间限制:4000 ms | 内存限制:210535 KB难度:2描述最近肾六很流行,goshawk看身边的朋友都用上了apple。自己还用着W年前的Samsung。于是决定去IT公司打工,都是为了肾六。现在上司让他解决下面的一个小问题,但是goshawk没学好算法,被这个问题难住了,聪明的... 阅读全文
posted @ 2015-11-30 21:38 handsomecui 阅读(256) 评论(2) 推荐(0) 编辑
摘要: 函数指针:intfunc(int x); /* 声明一个函数 */void(*f) (int x); /* 声明一个函数指针 */f=func; /*将func函数的首地址赋给指针f */#includeint max(int a,int b){return aint *f(int *a){ for... 阅读全文
posted @ 2015-11-30 14:22 handsomecui 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 问题 A: 感恩节KK专场——送给新生的礼物时间限制:1 Sec内存限制:128 MB 提交:633解决:189 [提交][状态][讨论版]题目描述学长KK要送给学弟学妹们礼物,他送给学弟每人一个礼物,送给学妹每人两个礼物。为什么?KK单身好多年了。现在KK想知道他需要准备的礼物数目。注意:如果没有... 阅读全文
posted @ 2015-11-29 21:33 handsomecui 阅读(368) 评论(0) 推荐(0) 编辑
摘要: Part AcquisitionTime Limit:1000MSMemory Limit:65536KTotal Submissions:4080Accepted:1742Special JudgeDescriptionThe cows have been sent on a mission th... 阅读全文
posted @ 2015-11-28 20:05 handsomecui 阅读(636) 评论(0) 推荐(0) 编辑
摘要: prim#include#include#include#include#include#includeusing namespace std;const int INF=0x3f3f3f3f;const double PI=acos(-1.0);typedef long long LL;#defi... 阅读全文
posted @ 2015-11-28 16:37 handsomecui 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 动物统计加强版 时间限制:3000 ms | 内存限制:150000 KB 难度:4 动物统计加强版 时间限制:3000 ms | 内存限制:150000 KB 难度:4 题解:贪心ac,字典树me,map超时; 代码: map超时 字典树me 自己写了一发链表ac了; 大神的链表; 过段时间又写了 阅读全文
posted @ 2015-11-28 14:18 handsomecui 阅读(708) 评论(0) 推荐(0) 编辑
摘要: Ultra-QuickSortTime Limit:7000MSMemory Limit:65536KTotal Submissions:50517Accepted:18534DescriptionIn this problem, you have to analyze a particular s... 阅读全文
posted @ 2015-11-28 08:55 handsomecui 阅读(654) 评论(0) 推荐(0) 编辑
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 77 下一页