水题
丶Xylon
这个作者很懒,什么都没留下…
展开
-
【CF 1017A】 The Rank
题目地址:http://codeforces.com/contest/1017/problem/A 水题,记录总分和序号排序输出即可 #include<iostream> #include<algorithm> #include<cstring> #include<string> #include<cstdio> #include&...原创 2018-08-09 17:00:15 · 206 阅读 · 0 评论 -
【CF 1092A】Uniform String
A. Uniform String You are given two integers nn and kk. Your task is to construct such a string ss of length nn that for each ii from 11 to kk there is at least ...原创 2018-12-19 23:31:47 · 514 阅读 · 0 评论 -
【HDU 2018】母牛的故事
原题地址:http://acm.hdu.edu.cn/showproblem.php?pid=2018 通过推算可以得知牛的数目增长规律是斐波那契数列,且 f[n]=f[n-1]+f[n-3]; 用递归写就是: #include<iostream> #include<algorithm> #include<cstring> #include<...原创 2018-12-21 23:24:32 · 180 阅读 · 0 评论 -
【CF 1097A】Gennady and a Card Game
A. Gennady and a Card Game Gennady owns a small hotel in the countryside where he lives a peaceful life. He loves to take long walks, watch sunsets and play cards with tour...原创 2019-01-05 23:50:52 · 409 阅读 · 0 评论 -
【CF 1108A】Two distinct points
A. Two distinct points You are given two segments [l1;r1][l1;r1] and [l2;r2][l2;r2] on the xx-axis. It is guaranteed that l1<r1l1<r1 and l2<r2l2<r2. Segmen...原创 2019-01-24 12:36:06 · 542 阅读 · 2 评论 -
【CF 1111A】Superhero Transformation
A. Superhero Transformation We all know that a superhero can transform to certain other superheroes. But not all Superheroes can transform to any other superhero. A superhe...原创 2019-02-17 10:54:45 · 358 阅读 · 0 评论 -
【CF 1143A】The Doors
A. The Doors Three years have passes and nothing changed. It is still raining in London, and Mr. Black has to close all the doors in his home in order to not...原创 2019-03-31 13:33:10 · 466 阅读 · 0 评论 -
【CF 1144B】Parity Alternated Deletions
B. Parity Alternated Deletions Polycarp has an arrayaaconsisting ofnnintegers. He wants to play a game with this array. The game consists of several moves. On the firs...原创 2019-04-03 13:36:39 · 337 阅读 · 0 评论 -
【CF 1194A】Remove a Progression
A. Remove a Progression You have a list of numbers from11tonnwritten from left to right on the blackboard. You perform an algorithm consisting of several steps ...原创 2019-07-16 10:11:54 · 314 阅读 · 0 评论 -
【CF 1196A】Three Piles of Candies
A. Three Piles of Candies Alice and Bob have received three big piles of candies as a gift. Now they want to divide these candies as fair as possible. To do this, ...原创 2019-07-25 14:47:39 · 427 阅读 · 0 评论 -
【CF 1080A】Petya and Origami
Petya is having a party soon, and he has decided to invite his nn friends. He wants to make invitations in the form of origami. For each invitation, he needs two red sheets, five green sheets, and ei...原创 2018-11-27 17:10:13 · 188 阅读 · 0 评论 -
【CF 1036A】Function Height
A. Function Height You are given a set of 2n+12n+1 integer points on a Cartesian plane. Points are numbered from 00 to 2n2n inclusive. Let PiPi be the ii-th point...原创 2018-09-08 10:40:51 · 377 阅读 · 0 评论 -
【HDU 6182】A Math Problem
A Math Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4965 Accepted Submission(s): 1543 Problem Description You are given a po...原创 2018-09-02 15:30:59 · 216 阅读 · 0 评论 -
【CF 1015A】Points in Segments
题目地址:http://codeforces.com/contest/1015/problem/A 题意:在一个数轴上有n个线段,线段可以为一个点。数轴的长度为1<=m<=100。 输入n和m,再输入n个线段的区间,求数轴m上不在这些区间里的点以及数目。 范围较小,可以直接暴力。 代码: #include<iostream> #include<cstrin...原创 2018-08-08 09:35:03 · 344 阅读 · 0 评论 -
【CF 1008C】Reorder the Array
C. Reorder the Array You are given an array of integers. Vasya can permute (change order) its integers. He wants to do it so that as many as possible integers will bec...原创 2018-08-11 10:25:59 · 248 阅读 · 0 评论 -
【CF 1023B】Pair of Toys
B. Pair of Toys Tanechka is shopping in the toy shop. There are exactly nn toys in the shop for sale, the cost of the ii-th toy is ii burles. She wants to ch...原创 2018-08-18 11:41:35 · 484 阅读 · 0 评论 -
【CF 1027A】Palindromic Twist
A. Palindromic Twist You are given a string ss consisting of nn lowercase Latin letters. nn is even. For each position ii (1≤i≤n1≤i≤n) in string ss you are requ...原创 2018-08-18 23:59:13 · 305 阅读 · 0 评论 -
【CF 1020A】New Building for SIS
A. New Building for SIS You are looking at the floor plan of the Summer Informatics School's new building. You were tasked with SIS logistics, so you really care abou...原创 2018-08-17 11:36:47 · 268 阅读 · 0 评论 -
【CF 1025A】Doggo Recoloring
A. Doggo Recoloring Panic is rising in the committee for doggo standardization — the puppies of the new brood have been born multi-colored! In total there are 26 pos...原创 2018-08-20 16:17:23 · 413 阅读 · 0 评论 -
【CF 1028A】Find Square
A. Find Square Consider a table of size n×mn×m, initially fully white. Rows are numbered 11 through nn from top to bottom, columns 11 through mm from left to r...原创 2018-08-28 16:05:28 · 479 阅读 · 0 评论 -
【CF 1029B】Creating the Contest
B. Creating the Contest You are given a problemset consisting of nn problems. The difficulty of the ii-th problem is aiai. It is guaranteed that all difficulties are ...原创 2018-08-25 08:57:21 · 558 阅读 · 0 评论 -
【HDU 6027】Easy Summation
Easy Summation Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 4002 Accepted Submission(s): 1623 Prob...原创 2018-09-02 15:17:16 · 243 阅读 · 0 评论 -
【CF 1204A】BowWow and the Timetable
A. BowWow and the Timetable In the city of Saint Petersburg, a day lasts for21002100minutes. From the main station of Saint Petersburg, a train departs after11minute,44...原创 2019-08-21 17:37:09 · 387 阅读 · 0 评论