- 博客(9)
- 资源 (1)
- 收藏
- 关注
原创 Codeforces Round #346 (Div. 2) A.B.C.D.E
A. Round House time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya lives in a round building, whose entrances are nu
2016-03-31 21:37:01 784
原创 hdu 5652 India and China Origins
Problem Description A long time ago there are no himalayas between India and China, the both cultures are frequently exchanged and are kept in sync at that time, but eventually himalayas rise up. Wit
2016-03-29 00:18:42 761 2
原创 Educational Codeforces Round 10 D. Nested Segments
D. Nested Segments time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given n segments on a line. There are no e
2016-03-26 14:24:09 595
转载 题目类型整理
(1) 起步阶段。 开始的时候就是对C语言的基本知识的学习,学过C语言的同学就可以开始做题了,最好不要一开始就接触算法,可以到一些学校的oj上找些简单的题目做,对于初学者,poj是个不错的选择,很多题目在网上找到解题报告和源代码.很多题目也比较简单.下面简单介绍一下: **关于poj: 网址: http://acm.pku.edu.cn/JudgeOnline/ 一般都是在oj上看完题
2016-03-23 14:57:15 744
原创 STL 容器的一些方法和demo整理
1.vector 0.vector 底部实现为数组,支持快速的在底部添加数据 ,但是它的修改是n级别的 1 基本操作 (1)头文件#include. (2)创建vector对象,vector vec; (3)尾部插入数字:vec.push_back(a); (4)使用下标访问元素,cout (5)使用迭代器访问元素. vectorint>::iterator it;
2016-03-23 13:41:40 952
原创 HDU 2609 How many
// 找找状态 1.关于最小表示法 循环字符串的最小表示法的问题可以这样描述: 对于一个字符串S,求S的循环的同构字符串S’中字典序最小的一个。 由于语言能力有限,还是用实际例子来解释比较容易: 设S=bcad,且S’是S的循环同构的串。S’可以是bcad或者cadb,adbc,dbca。而且最小表示的S’是adbc。 对于字符串循环同构的最小表示法,其问
2016-03-22 21:11:20 433
原创 hihoCoder 1272 买零食
描述 小Ho很喜欢在课间去小卖部买零食。然而不幸的是,这个学期他又有在一教的课,而一教的小卖部姐姐以冷若冰霜著称。第一次去一教小卖部买零食的时候,小Ho由于不懂事买了好一大堆东西,被小卖部姐姐给了一个“冷若冰霜”的眼神,食欲都下降了很多。 从那以后,小Ho就学乖了,去小卖部买东西只敢同时买3包以内的零食,并且价格加起来必须是5的整数倍,方便小卖部姐姐算价格。 但是小Ho不擅长计算,所以他把小
2016-03-14 00:32:19 2100
原创 KMP题 hdu3336 hdu3746 hdu 1358 hdu2594
hdu 3336 Count the string Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7242 Accepted Submission(s): 3348 Problem Description I
2016-03-05 17:24:30 680
原创 Codeforces Round #344 (Div. 2) C - Report 遇到排序什么的就是无尽的蛋疼
题目: C. Report time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Each month Blake gets the report containing
2016-03-05 00:23:39 652
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人