摘要: Sample Input Sample Output 14050 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn = 5e4+5; int w[15],v[15]; 阅读全文
posted @ 2019-05-28 16:28 kongbb 阅读(188) 评论(0) 推荐(0) 编辑
摘要: The title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have seem this title.If you haven't 阅读全文
posted @ 2019-05-26 21:23 kongbb 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Problem Description 不知道大家有没有玩过一个叫做 九连环 的玩具,如下图所示。 如果你不了解九连环,那玄黄就带你领略九连环的奥妙: 九连环是我国传统的民间智力玩具,玩具上面有九个连环套在杆上,目标就是通过一定的方式将九个连环从杆上全部取下来。 玩法是这样的: 1、对每个环,有2种 阅读全文
posted @ 2019-05-26 21:19 kongbb 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Balanced numbers have been used by mathematicians for centuries. A positive integer is considered a balanced number if: 1) Every even digit appears an 阅读全文
posted @ 2019-05-16 22:09 kongbb 阅读(152) 评论(0) 推荐(0) 编辑
摘要: soda has an integer array a1,a2,…,ana1,a2,…,an. Let S(i,j)S(i,j) be the sum of ai,ai+1,…,ajai,ai+1,…,aj. Now soda wants to know the value below: ∑i=1n 阅读全文
posted @ 2019-05-16 16:16 kongbb 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Recall the definition of the median of elements where is odd: sort these elements and the median is the -th largest element. In this problem, the exac 阅读全文
posted @ 2019-05-13 22:45 kongbb 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 11 号上午到了济南大学,然后就是。。。走了一个中午的路emmm。。。。。济南大学真大啊,我从西门走到12号教学楼,又走到西门的大礼堂,再走回12号教学楼,热身赛结束再走回西门的宾馆,两万的步数,到了宾馆我和许哥哥的衣服都湿了。我感觉曲师校园小还挺好的。看了一下知乎才知道,济南大学还有个更大的南校区 阅读全文
posted @ 2019-05-13 18:33 kongbb 阅读(588) 评论(0) 推荐(0) 编辑
摘要: #define xhxj (Xin Hang senior sister(学姐)) If you do not know xhxj, then carefully reading the entire description is very important. As the strongest f 阅读全文
posted @ 2019-05-09 15:35 kongbb 阅读(125) 评论(0) 推荐(0) 编辑
摘要: A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit as a box wi 阅读全文
posted @ 2019-05-07 15:18 kongbb 阅读(100) 评论(0) 推荐(0) 编辑
摘要: C. Match Pointstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output You are given a set of points x1 阅读全文
posted @ 2019-05-04 21:51 kongbb 阅读(204) 评论(0) 推荐(0) 编辑