![](https://img-blog.csdnimg.cn/20190901142450988.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
VJ
chen_zan_yu_
同是寒窗苦读,岂能甘拜下风
展开
-
H - Happy Birthday UN (18.10.2)
The Universidad Nacional de Colombia (UN) was created on September 22 of 1867, a Sunday. In 2017 the UN had its sesquicentenary, i.e. it was its 150th birthday. The sesquicentenary of the UN was on a ...原创 2018-10-02 14:35:02 · 364 阅读 · 0 评论 -
A - Printing Books (SDUT 2018 Autumn Individual Contest - F)
滴答滴答---题目链接Nour likes comic books so much that she decided to write her own comic book. Once she had this amazing idea, she started working on it immediately.After a few days she finished her very...原创 2018-10-03 23:10:08 · 433 阅读 · 0 评论 -
H - Buying Products (SDUT 2018 Autumn Individual Contest - F)
滴答滴答--题目链接 Salim (a.k.a Slango) and his wife fight all the time. When Salim came home at night, his needy wife Afaf (a.k.a Afoufe) was waiting for him at the door."You don't buy any products for t...原创 2018-10-03 23:13:15 · 439 阅读 · 0 评论 -
F - A Missing Problem in TCPC2017 (SDUT 2018 Autumn Individual Contest - F)
滴答滴答---题目链接 While the judges of TCPC were busy preparing the problems, they encountered a strange problem. One of the problems was missing !!The judges remember that they prepared exactly N proble...原创 2018-10-03 23:22:29 · 453 阅读 · 0 评论 -
C - Shahhoud Training Hussain(SDUT 2018 Autumn Individual Contest - F)
滴答滴答---题目链接 Ever since coach Shahhoud started the series "Problem Every Day" . Hussain decided to train really hard. After all, he may get a chance to qualify for the upcoming SCPC contest !Shahho...原创 2018-10-03 23:29:04 · 479 阅读 · 0 评论 -
I - Por Costel and the Pairs
滴答滴答---题目链接 We don't know how Por Costel the pig arrived at FMI's dance party. All we know is that he did.The dance floor is hot because Por Costel broke the air conditioner. On the dance floor, t...原创 2018-10-04 23:20:26 · 378 阅读 · 0 评论 -
A - Por Costel and Azerah(SDUT 2018 Autumn Individual Contest - G)
滴答滴答---题目链接 Por Costel the Pig has received a royal invitation to the palace of the Egg-Emperor of Programming, Azerah. Azerah had heard of the renowned pig and wanted to see him with his own eyes...原创 2018-10-05 12:06:49 · 388 阅读 · 1 评论 -
Problem (D.SDUT 2018 Autumn Individual Contest - H)
Problem D.滴答滴答---题目链接Deposits Input file: deposits.in Output file: deposits.out Time limit: 3 seconds Memory limit: 256 megabytesFinancial crisis forced many central banks deposit large amounts ...原创 2018-10-06 08:55:07 · 270 阅读 · 0 评论 -
H - Holes (SDUT 2018 Autumn Individual Contest - H)
滴答滴答---题目链接 #include <iostream>#include<stdio.h>using namespace std;int main(){freopen("holes.in","r",stdin); freopen("holes.out","w",stdout); int n; scanf("%d&原创 2018-10-06 08:54:55 · 208 阅读 · 0 评论 -
A - Zero Array (SDUT 2018 Autumn Individual Contest - I)
滴答滴答---题目链接滴答滴答--题目链接You are given an array a consisting of n elements, and q queries. There are two types of queries, as follow:"1 p v" – An update query asks to change the value at position p in...原创 2018-10-07 09:26:29 · 794 阅读 · 0 评论 -
D - Balloons (SDUT 2018 Autumn Individual Contest - I)
滴答滴答---题目链接In many contests, balloons are used to indicate to contestants the general state of the contest. Each time a team solves a problem, a balloon of a specific color is sent to the team and a...原创 2018-10-07 09:26:21 · 367 阅读 · 0 评论 -
F - Working Time (SDUT 2018 Autumn Individual Contest - I)
滴答滴啊--题目链接Working time is the period of time that a person spends at paid labor.You are given the working record of an employee containing the starting and ending time of work in n days. Your task...原创 2018-10-07 09:26:12 · 365 阅读 · 0 评论 -
H - Cube (SDUT 2018 Autumn Individual Contest - I)
滴答滴答---题目链接In geometry, a cube is a three-dimensional solid object bounded by six square faces, with three meeting at each vertex. The image bellow is an example of a cube.You are given the surf...原创 2018-10-07 09:25:53 · 255 阅读 · 0 评论 -
J - Smallest Difference (SDUT 2018 Autumn Individual Contest - I)
滴答滴答---题目链接You are given an array a consists of n elements, find the maximum number of elements you can select from the array such that the absolute difference between any two of the chosen elements...原创 2018-10-07 09:25:22 · 392 阅读 · 0 评论 -
畅通工程续 (SDUT 2017级 暑期个人专题测试赛4(最短路下半场))
某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。Input本题目包含多组数据,请处理到文件结束。 每组数据第一行包含两个正整数N和M(0<N<200,0<...原创 2018-10-11 09:10:49 · 88 阅读 · 0 评论 -
一个人的旅行 (SDUT 2017级 暑期个人专题测试赛4(最短路下半场))
虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,^0^),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多地方,她想要去东京铁塔看夜景,去威尼斯看电影,去阳明山上看海芋,去纽约纯粹看雪景,去巴黎喝咖啡写信,去北京探望孟姜女……眼看寒假就快到了,这么一大段时间,可不能浪费啊,一定要给自己好好的放个假...原创 2018-10-11 09:11:05 · 150 阅读 · 0 评论 -
Cow Hurdles ( SDUT 2017级 暑期个人专题测试赛4(最短路下半场))
滴答滴答---题目链接 Farmer John wants the cows to prepare for the county jumping competition, so Bessie and the gang are practicing jumping over hurdles. They are getting tired, though, so they want to be a...原创 2018-10-11 09:11:55 · 118 阅读 · 0 评论 -
D - Obtain Desired Expected Value
You are given n non-negative integers x1, x2, ..., xn. You are also given a positive integer E. You have to find n non-negative real numbers p1, p2, ..., pn such that p1 · x1 + p2 · x2 + p3 · x3 + ......原创 2018-10-28 10:34:54 · 274 阅读 · 0 评论 -
Method Resolution Order(快速幂)
Zotlin is an object-oriented programming language that provides features such as Classes and Functions. Zotlin also has the following features:A function with the same name and same declarations can...原创 2018-10-28 11:43:22 · 249 阅读 · 0 评论 -
H - Doki Doki Literature Club (字典序)
滴答滴答---题目链接 Doki Doki Literature Club! is a visual novel developed by Team Salvato. The protagonist is invited by his childhood friend, Sayori, to join their high school's literature club. The prota...原创 2018-11-01 00:30:12 · 325 阅读 · 0 评论 -
F - CONTINUE...? (给一个数n,1到n标记,把他分成两部分且相等)
滴答滴答---题目链接 DreamGrid has classmates numbered from to . Some of them are boys and the others are girls. Each classmate has some gems, and more specifically, the -th classmate has gems.DreamGrid...原创 2018-11-01 00:59:31 · 377 阅读 · 0 评论 -
A - A Curious Matt (排序)2014ACM/ICPC亚洲区北京站-重现赛(感谢北师和上交)
There is a curious man called Matt. One day, Matt's best friend Ted is wandering on the non-negative half of the number line. Matt finds it interesting to know the maximal speed Ted may reach. In ord...原创 2018-10-27 15:03:22 · 227 阅读 · 0 评论 -
Happy Matt Friends(利用滚动数组优化数组空间的DP)
滴答滴答---题目链接 Happy Matt FriendsTime Limit: 6000/6000 MS (Java/Others) Memory Limit: 510000/510000 K (Java/Others)Total Submission(s): 5492 Accepted Submission(s): 2096 Problem Description...原创 2018-10-27 16:01:47 · 179 阅读 · 0 评论 -
树状数组--K.Bro Sorting
K.Bro SortingTime Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 4628 Accepted Submission(s): 2013 Problem DescriptionMatt’s friend K.B...原创 2018-10-27 16:40:53 · 130 阅读 · 0 评论 -
Dire Wolf(区间DP)
Dire WolfTime Limit: 5000/5000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 4002 Accepted Submission(s): 2375 Problem DescriptionDire wolves, also kno...原创 2018-10-27 17:06:41 · 317 阅读 · 0 评论 -
Intersection(圆环相交)
IntersectionTime Limit: 4000/4000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 4408 Accepted Submission(s): 1681 Problem DescriptionMatt is a big fan ...原创 2018-10-27 17:22:56 · 735 阅读 · 0 评论 -
E - Magic Points (0到4*n-5个点围成正方形,最多交点)
滴答滴答---题目链接 Given an integer , we say a point on a 2D plane is a magic point, if and only if both and are integers, and exactly one of the following conditions is satisfied: and ; and ;...原创 2018-11-01 09:43:04 · 484 阅读 · 0 评论 -
I - Good and Bad Persons
Chef is a really nice and respectful person, in sharp contrast to his little brother, who is a very nasty and disrespectful person. Chef always sends messages to his friends in all small letters, wher...原创 2018-10-27 23:49:52 · 197 阅读 · 0 评论 -
K - Minimize the string
You are given n strings s1, s2, ..., sn. Each of these strings consists only of letters 'a' and 'b', and the length of each string can be at most 2. In other words, the only allowed strings are "a", "...原创 2018-10-28 00:30:50 · 436 阅读 · 0 评论 -
L - One-Dimensional Maze
滴答滴答题目链接 BaoBao is trapped in a one-dimensional maze consisting of grids arranged in a row! The grids are numbered from 1 to from left to right, and the -th grid is marked with a character , where...原创 2018-10-30 23:29:56 · 195 阅读 · 0 评论 -
C - Crusaders Quest (栈和队列的运用)
滴答滴答---题目链接 Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the game world, and the only hope for your kingdom is to save the Goddesses so that they c...原创 2018-10-30 23:58:54 · 368 阅读 · 0 评论 -
E - String of CCPC (字符串处理)(str.substr()的运用)
滴答滴答---题目链接 BaoBao has just found a string of length consisting of 'C' and 'P' in his pocket. As a big fan of the China Collegiate Programming Contest, BaoBao thinks a substring of is "good", if...原创 2018-10-31 00:43:43 · 318 阅读 · 0 评论 -
Color Changing Sofa
滴答滴答---题目链接 StatementsPiva has recently bought a wonderful beach house at Praia do Forte.After deciding that his house would be as colorful as a rainbow, Piva painted his living room in tiles of...原创 2018-11-01 23:52:50 · 364 阅读 · 0 评论 -
E - Hat-Xor (异或的用法'^')
滴答滴答---题目链接 StatementsAfter having a wonderful time at the Carnival test festival, Jão and his friends decided to go for an after party in his house. At some point Jão convinced them to play a cla...原创 2018-11-02 00:00:08 · 439 阅读 · 0 评论 -
Rei do Cangaço (连续数相加的速算)
滴答滴答---图木连接 João has just bought a new game from the store: Lampião, o Rei do Cangaço. The main character of the game is Lampião, a known figure of Soteropolitan culture and probably the most famous...原创 2018-11-02 00:39:22 · 238 阅读 · 0 评论 -
D - Popcorn (排列组合)
滴答滴答---题目链接 Maram and Marwa are an example of good friends. They know each other since they were in the kindergarten. One day, they went together to the movies after they bought two tickets for the ...原创 2018-11-03 23:43:54 · 480 阅读 · 0 评论 -
H - Commandos (自闭了~~~dp)
StatementsA commando is a soldier of an elite light infantry often specializing in amphibious landings, abseiling or parachuting. This time our Commando unit wants to free as many hostages as it cou...原创 2018-11-04 00:21:25 · 278 阅读 · 0 评论 -
The Galactic Olympics (第二类斯特林数)
d's'f's Altanie is a very large and strange coun蒟蒻JHYtry in Mars. People of Mars ages a lot. Some of them live for thousands of centuries!Your old friend Foki "The president of the Martian United ...原创 2018-11-04 00:51:01 · 201 阅读 · 0 评论 -
E - Cats and Fish
滴答滴答---题目链接 There are many homeless cats in PKU campus. They are all happy because the students in the cat club of PKU take good care of them. Li lei is one of the members of the cat club. He loves ...原创 2018-11-06 23:33:41 · 201 阅读 · 0 评论 -
Jumping
滴答滴答--题目链接Shopping with the wife is one of men's hardest marriage responsibilities. Nour is a good husband. So he goes out with his wife every Friday to "Damasquino" mall.Damasquino is a very famo...原创 2018-11-04 15:56:02 · 580 阅读 · 0 评论