比赛
文章平均质量分 83
一只大秀逗
这个作者很懒,什么都没留下…
展开
-
I. Reversion Count(2018 ACM-ICPC 中国大学生程序设计竞赛线上赛)
I. Reversion Counthttps://nanti.jisuanke.com/t/26217Description:There is a positive integer X, X's reversion count is Y. For example, X=123, Y=321; X=1234, Y=4321. Z=(...原创 2018-04-22 17:11:51 · 147 阅读 · 0 评论 -
F - Friends and Berries
F - Friends and Berries URAL - 2067 思路:求所有点在一条直线上。因为p(v,u)>( p(v,u)+p(v,w)+p(u,w) )/2 —> p(v,u)>p(v,w)+p(u,w)把他们看成三个点,w只有在vw线段上才能满足条件。而w必须取任意值都行才可以,所以所有点在一条线段上。代码:#include<iostream>#...原创 2018-04-29 15:48:15 · 124 阅读 · 0 评论 -
upc2018年第三阶段个人训练赛第七场C题
问题 C: Restoring Road Networkhttp://exam.upc.edu.cn/problem.php?cid=1392&pid=2时间限制: 1 Sec 内存限制: 128 MB提交: 896 解决: 184[提交] [状态] [讨论版] [命题人:admin]题目描述In Takahashi Kingdom, which once exis...原创 2018-07-31 18:49:03 · 390 阅读 · 0 评论 -
D.Thinking-Bear magic(2018 ACM 国际大学生程序设计竞赛上海大都会赛重现赛)
链接:https://www.nowcoder.com/acm/contest/163/D来源:牛客网 Thinking-Bear magic时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述In order to become a magical girl, Thinkin...原创 2018-08-05 20:31:47 · 180 阅读 · 0 评论 -
问题 M: 序列合并
问题 M: 序列合并http://exam.upc.edu.cn/problem.php?cid=1444&pid=12时间限制: 1 Sec 内存限制: 64 MB提交: 748 解决: 176[提交] [状态] [讨论版] [命题人:admin]题目描述有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2个和,求这N^2个和中最小的N个。 ...原创 2018-08-10 20:12:26 · 432 阅读 · 0 评论 -
6760: 九连环(大数)
6760: 九连环http://exam.upc.edu.cn/problem.php?id=6760时间限制: 1 Sec 内存限制: 128 MB提交: 582 解决: 92[提交] [状态] [讨论版] [命题人:admin]题目描述九连环是一种源于中国的传统智力游戏。如图所示,九个圆环套在一把“剑”上,并且互相牵连。游戏的目标是把九个圆环从“剑”上卸下。圆环...原创 2018-08-07 18:31:07 · 448 阅读 · 0 评论 -
2018百度之星初赛(B)degree
degreehttp://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=826&pid=1001Accepts: 1581Submissions: 3494Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java...原创 2018-08-13 08:47:03 · 362 阅读 · 0 评论 -
hdu6425 Rikka with Badminton(2018 Multi-University Training Contest 9)
Rikka with Badminton Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 95 Accepted Submission(s): 67http://acm.hdu.edu.cn/showprob...原创 2018-08-20 20:16:02 · 375 阅读 · 0 评论 -
8840: Medical Checkup
8840: Medical Checkuphttp://exam.upc.edu.cn/problem.php?id=8840时间限制: 2 Sec 内存限制: 128 MB提交: 184 解决: 52[提交] [状态] [讨论版] [命题人:admin]题目描述Students of the university have to go for a medical chec...原创 2018-08-29 18:33:15 · 701 阅读 · 0 评论 -
8838: Secret of Chocolate Poles(dp)
8838: Secret of Chocolate Poleshttp://exam.upc.edu.cn/problem.php?id=8838时间限制: 1 Sec 内存限制: 128 MB提交: 151 解决: 63[提交] [状态] [讨论版] [命题人:admin]题目描述Wendy, the master of a chocolate shop, is thin...原创 2018-08-29 19:18:50 · 218 阅读 · 0 评论 -
G - Game of Nuts
G - Game of Nuts URAL - 2068 思路:找规律。堆数为奇数,最后都为1是不可再分。3—>1,1,1(分1次)5—>1,1,3—>1,1,1,1,1(分2次)7—>1,3,3—>1,1,1,1,3—>1,1,1,1,1,1,1(分3次)堆数:3 5 7 9 11 ... sum 次数:1 ...原创 2018-04-29 14:44:24 · 86 阅读 · 0 评论 -
萌萌哒身高差
萌萌哒身高差链接:https://www.nowcoder.com/acm/contest/117/C来源:牛客网题目描述 “清明时节雨纷纷,路上行人欲断魂。” 然而wfy同学的心情是愉快的,因为BNU ACM队出去春游啦!并且,嗯。。。 以下是wfy同学的日记: 昨天,何老师告诉我们:明天我们去春游,大家准备好喝的和吃的哦! 大家听了都兴奋起来,有的欢呼,有的鼓掌,开心得不得了。第二...原创 2018-04-28 20:25:57 · 190 阅读 · 0 评论 -
F - Auxiliary Set
F - Auxiliary Set Given a rooted tree with n vertices, some of the vertices are important. An auxiliary set is a set containing vertices satisfying at least one of the two conditions: ∙∙It is an impor...原创 2018-04-30 17:33:16 · 283 阅读 · 0 评论 -
2070. Interesting Numbers
2070. Interesting NumbersTime limit: 2.0 secondMemory limit: 64 MBNikolay and Asya investigate integers together in their spare time. Nikolay thinks an integer is interesting if it is a prime number. ...原创 2018-04-30 19:37:52 · 247 阅读 · 0 评论 -
B - Building Shops
B - Building ShopsHDU’s nn classrooms are on a line ,which can be considered as a number line. Each classroom has a coordinate. Now Little Q wants to build several candy shops in thesenn classrooms. T...原创 2018-05-01 15:22:00 · 237 阅读 · 0 评论 -
C - Coprime Sequence
C - Coprime Sequence Do you know what is called ``Coprime Sequence''? That is a sequence consists of nnpositive integers, and the GCD (Greatest Common Divisor) of them is equal to 1. ``Coprime Sequenc...原创 2018-05-01 15:34:30 · 195 阅读 · 0 评论 -
K King of the Waves
K King of the WavesYou are organising a king of the hill tournament, the Buenos AiresPaddleboarding Competition (BAPC), with n participants. In aking of the hill tournament, one person starts as a “ki...原创 2018-05-02 16:02:33 · 349 阅读 · 0 评论 -
C Collatz Conjecture
C Collatz ConjectureIn 1978 AD the great Sir Isaac Newton, whilst proving that Pis a strict superset of N P, defined the Beta Alpha Pi Zetafunction f as follows over any sequence of positive integersa...原创 2018-05-02 18:03:59 · 787 阅读 · 0 评论 -
Problem A Alien Sunset
Problem A Alien SunsetFollowing tremendous advances in space flight control software and equally impressive innovationsin reality TV crowdfunding, humans have successfully settled a number of planets,...原创 2018-05-03 15:26:33 · 458 阅读 · 0 评论 -
Problem F Flipping Coins(dp)
Problem FFlipping CoinsHere’s a jolly and simple game: line up a row of N identical coins, all with the heads facingdown onto the table and the tails upwards, and for exactly K times take one of the c...原创 2018-05-03 16:59:26 · 333 阅读 · 0 评论 -
Problem E Education
Problem EEducationSeeking to cash in on the lucrative private education business, EduCorp recently establishedthe prestigious ”Bootcamp Academy of Economics” and, counter to their early projections, i...原创 2018-05-03 19:54:57 · 378 阅读 · 0 评论 -
问题 C: Coolest Ski Route(dfs优化)
问题 C: Coolest Ski Routehttp://exam.upc.edu.cn/problem.php?id=8000&csrf=2JOsy0TloBulQqEqOaC4Z2IM4eHIBJwO时间限制: 1 Sec 内存限制: 128 MB提交: 113 解决: 32[提交] [状态] [讨论版] [命题人:admin]题目描述John loves w...原创 2018-09-08 11:35:00 · 407 阅读 · 0 评论