
CF
文章平均质量分 81
「已注销」
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #221 (Div. 2)
A. Levertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a description of a lever as原创 2013-12-30 02:49:51 · 4276 阅读 · 0 评论 -
Codeforces441C_Valera and Tubes(暴力)
Valera and Tubestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera has got a rectangle table consisting原创 2014-07-01 02:30:08 · 1570 阅读 · 1 评论 -
Codeforces Round #257 (Div. 2/A)/Codeforces450A_Jzzhu and Children
解题报告没什么好说的,大于m的往后面放,,,re了一次,,,#include #include #include #include using namespace std;struct node{ int x,cd;}num[1000000];int main(){ int n,m,c; cin>>n>>m; int i; for原创 2014-07-20 00:19:35 · 6154 阅读 · 2 评论 -
Codeforces Round #257 (Div. 2/B)/Codeforces450B_Jzzhu and Sequences
解题报告算是规律题吧,,,x y z -x -y -z注意的是如果数是小于0,要先对负数求模再加模再求模给我的戳代码跪了,,,#include #include #include using namespace std;long long x,y,z;long long n;int main(){ cin>>x>>y; cin>>n; z=y原创 2014-07-20 00:24:14 · 1240 阅读 · 0 评论 -
Codeforces Round #258 (Div. 2/A)/Codeforces451A_Game With Sticks
解题报告n和m跟木棍相交,问一人取一交点(必须是交点,且取完后去掉交点的两根木棍),最后谁赢思路:取最大正方形,以对角线上的交点个数判断输赢。#include #include using namespace std;int main(){ int m,n; while(cin>>n>>m) { if(n>m) {原创 2014-07-25 02:25:02 · 1488 阅读 · 0 评论 -
Codeforces Round #258 (Div. 2/B)/Codeforces451B_Sort the Array
解题报告对于给定的数组,取对数组中的一段进行翻转,问翻转后是否是递增有序的。思路:只要找到最初递减的区域,记录区域内最大和最小的值,和区间位置。然后把最大值与区间的下一个元素对比,最小值与区间上一个元素对比。这样还不够,可能会出现两个或两个以上的递减区间,这种情况直接pass,因为只能翻转一次。#include #include #include #define in原创 2014-07-25 02:34:20 · 1101 阅读 · 0 评论 -
Codeforces444A_DZY Loves Physics
DZY Loves Physicstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves Physics, and he enjoys calculati原创 2014-07-07 12:09:36 · 999 阅读 · 0 评论 -
Codeforces445A_DZY Loves Chessboard(预处理)
DZY Loves Chessboardtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves chessboard, and he enjoys pla原创 2014-07-07 01:46:04 · 3749 阅读 · 0 评论 -
Codeforces Round #258 (Div. 2/C)/Codeforces451C_Predict Outcome of the Game(枚举)
解题报告题意:n场比赛其中k场是没看过的,对于这k场比赛,a,b,c三队赢的场次的关系是a队与b队的绝对值差d1,b队和c队绝对值差d2,求是否能使三支球队的赢的场次相同。思路:|B-A|=d1|C-B|=d2A+B+C=k这样就有4种情况,分别是:B>A&&CB>A&&C>BBBB分别算出在k场比赛中a,b,c三支队伍赢的场次,另外n-k场比赛分别原创 2014-07-25 02:46:18 · 1705 阅读 · 0 评论 -
Codeforces445B_DZY Loves Chemistry(DFS/并查集)
DZY Loves Chemistrytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves chemistry, and he enjoys mixin原创 2014-07-07 01:55:22 · 1298 阅读 · 0 评论 -
Codeforces Round #FF (Div. 2/A)/Codeforces447A_DZY Loves Hash(哈希)
A. DZY Loves Hashtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY has a hash table with p buckets, numbe原创 2014-07-14 17:08:03 · 787 阅读 · 0 评论 -
Codeforces Round #FF (Div. 2/B)/Codeforces447B_ DZY Loves Strings(字符串处理)
B. DZY Loves Stringstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves collecting special strings wh原创 2014-07-14 17:06:56 · 800 阅读 · 0 评论 -
Codeforces440A_Forgotten Episode(水题)
Forgotten Episodetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus adores TV series. Right now he原创 2014-06-28 15:16:16 · 975 阅读 · 0 评论 -
Codeforces Round #256 (Div. 2/C)/Codeforces448C_Painting Fence(分治)
解题报告给篱笆上色,要求步骤最少,篱笆怎么上色应该懂吧,,,刷子可以在横着和竖着刷,不能跳着刷,,,如果是竖着刷,应当是篱笆的条数,横着刷的话,就是刷完最短木板的长度,再接着考虑没有刷的木板,,,递归调用,,,#include #include #include #include #define inf 999999999999999using namespace std原创 2014-07-19 06:32:54 · 1322 阅读 · 0 评论 -
Codeforces Round #222 (Div. 2)
A. Playing with Dicetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwo players are playing a game. First e原创 2013-12-30 02:13:09 · 5224 阅读 · 0 评论 -
Codeforce Good Bye 2013
A. New Year Candlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily the Programmer loves romance, so原创 2013-12-31 14:12:27 · 824 阅读 · 0 评论 -
CodeForces 208A/D 18周周赛
Prizes, Prizes, more Prizestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya, like many others, likes原创 2014-01-04 19:04:33 · 818 阅读 · 0 评论 -
Vasya and the Bus
DescriptionOne day Vasya heard a story: "In the city of High Bertown a bus number 62 left from the bus station. It had n grown-ups and m kids..."The latter events happen to be of no importance t原创 2013-12-30 13:35:25 · 656 阅读 · 0 评论 -
CodeForces 282A 19周周赛
A. Bit++time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe classic programming language of Bitland is Bit+原创 2014-01-14 14:53:32 · 903 阅读 · 0 评论 -
Codeforces Round #239 (Div. 2)
A.Line to CashierMLE合适么,数组给开大了。很水。#include #include #include #include #include #define inf 99999999using namespace std;struct node{ int k; int num[110]; int sum;} po[110];int原创 2014-03-30 18:57:30 · 503 阅读 · 0 评论 -
Codeforces Round #256 (Div. 2/B)/Codeforces448B_Suffix Structures(字符串处理)
Suffix Structurestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion isn't just a bison. He原创 2014-07-18 02:15:54 · 1210 阅读 · 0 评论 -
Codeforces441A_Valera and Antique Items(水题)
Valera and Antique Itemstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera is a collector. Once he want原创 2014-06-28 12:36:28 · 948 阅读 · 0 评论 -
Codeforces Round #256 (Div. 2/A)/Codeforces448A_Rewards(水题)
Rewardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion is called the Champion for a reas原创 2014-07-18 02:11:01 · 1473 阅读 · 5 评论 -
Codeforces441B_Valera and Fruits(暴力)
Valera and Fruitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera loves his garden, where n fruit tre原创 2014-06-28 13:54:51 · 1268 阅读 · 0 评论 -
Codeforces442B_Andrey and Problem(贪心)
Andrey and Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrey needs one more problem to conduct原创 2014-06-28 00:37:52 · 1201 阅读 · 0 评论 -
Codeforces Round #FF (Div. 2/C)/Codeforces446A_DZY Loves Sequences(DP)
DZY Loves Sequencestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY has a sequence a, consisting of n in原创 2014-07-14 17:22:53 · 664 阅读 · 0 评论