06 2018 档案
摘要:Problem Description: 双十一大家都在买买买,可忙坏了快递小哥了。zl和皮卡鸡在大伙在剁手的时候,偷偷去快递公司那当兼职赚钱了。zl将箱子一个个叠起来,皮卡鸡将那堆箱子搬到别的地方去,但由于箱子太重,他每次只能拿最上面的一个。zl一边叠箱子,皮卡鸡就一边把目前最上面的箱子搬走,但由
阅读全文
摘要:夏天到了,又到了出游的季节 夏天到了,又到了出游的季节 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: QWER最近无心打代码,于是带着n套衣服出去浪.但
阅读全文
摘要:迟到的祝福(四) 迟到的祝福(四) Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 据说前几天是雁来师姐的生日,作为一个15级的小鲜肉A,没及时给师姐送去
阅读全文
摘要:梦中的函数 梦中的函数 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 寒假那段时间,每天刷题的小G连做梦都是代码,于是有了这道题。 给定一个数组a,求g
阅读全文
摘要:ZHANGZHANG喜欢手表 ZHANGZHANG喜欢手表 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: ZHANGZHANG刚过生日,收到了好朋友NE
阅读全文
摘要:出题人这样不好吧 出题人这样不好吧 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 作为编协的第一次月赛,肯定是要有防AK(ALL KILL)的题目的,只
阅读全文
摘要:Mystery Mystery Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: No Description Problem Description: I
阅读全文
摘要:Repeating Characters Repeating Characters Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: For this pr
阅读全文
摘要:题目这么难,来局愉快的昆特牌吧 题目这么难,来局愉快的昆特牌吧 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小Z打比赛,然而比赛太难了,他坐在电脑面前
阅读全文
摘要:水题你信吗 水题你信吗 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 某发最近又认识了很多妹(han)子,可是妹(han)子一多不免有时会忘记那么一两个
阅读全文
摘要:滚动AC 滚动AC Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小光最近拉了几个同学入ACM的坑,为鼓励A题,就增加奖励制度:每AC三道就送一道,且可
阅读全文
摘要:Problem Description: 输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否为该栈的弹出顺序。假设压入栈的所有数字均不相等。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个弹出序列,但4,3,5,1,2就不可能是该压栈序列的弹出
阅读全文
摘要:黯然销魂? 黯然销魂? Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 发神集训表现出色,决定要送他鸡翅,但是锴神决定不让他那么容易拿到,所以给鸡翅包了很
阅读全文
摘要:Cipher Cipher Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 只剩两个小时就要正式开始第一次月赛了,大四师兄决定还是来出一道,找点存在感,出
阅读全文
摘要:小凯的排序 小凯的排序 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 调皮的小凯喜欢排序,拿到什么东西都要排一下序。现在他觉得单一的递增递减排序已经不能
阅读全文
摘要:Problem Description: Problem Description: 哥德巴赫猜想大概是这么一回事:“偶数(>=4) == 两个质数的和”,至于是不是、成不成立,随它吧。 Input: 多组数据,每组一个偶数n(4<=n<=10^6) Input: Output: 若能分解则输出这两个
阅读全文
摘要:小G的循环 小G的循环 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 一回生,二回熟,三回就腻,小G用for,while循环用得太多了,累觉不爱。于是自
阅读全文
摘要:三角形蛇形矩阵 三角形蛇形矩阵 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小铠觉得各类题型是要温故而知新的,所以他叫小发出一道类似做过的题。其实,一
阅读全文
摘要:小Z的A+B 小Z的A+B Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小Z最喜欢A+B了,没事就研究研究,比如什么大整数A+B(就是1000万万亿+
阅读全文
摘要:整数反转 整数反转 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 给定一个32位int型的整数,把这个整数反着输出,如123,输出321。反转过程中有可
阅读全文
摘要:Power Mouth Power Mouth Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: Your task is to calculate the
阅读全文
摘要:一道耗时间的水题 一道耗时间的水题 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: Do you know how to read the phone n
阅读全文
摘要:Problem Description: Problem Description: Input: 输入包含多组数据(EOF),每组数据第一行是一个整数n(1<=n<=10^5),第二行有n个整数(<=10^5); Input: Output: 对于每组数据,输出小明排序算法的交换次数。 Output
阅读全文
摘要:数组 数组 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 给一个数组a[n],令s[i]为数组a中比a[i]大的数的个数。求数组s。 Problem D
阅读全文
摘要:名字的价值 名字的价值 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 集训终于开始了,参加集训的人很多,也就有很多名字,集训组织者发现了一件很神奇的事情
阅读全文
摘要:Exponentiation Exponentiation Time Limit: 2000/1000ms (Java/Others) Problem Description: Problems involving the computation of exact values of very la
阅读全文
摘要:Problem Description: Problem Description: 端午节快到了,小蛋准备到集市上买粽子。于是周六这天,小蛋和舍友搭着公交到了西南市场。说来也怪,这天集市上就只有n个人在卖粽子,整齐地排成一列,而且第i(1<=i<=n)个人前面有Xi个粽子堆在一起。小蛋这人平时很大方
阅读全文
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 const int len = 20;//待排序数组元素的个数,下标从1开始 6 //1、冒泡排序 7 void Bubble_sort(int s[],int len){ 8 bool flag; 9 for(int i=1;i...
阅读全文
摘要:写数字 Time Limit: 2000/1000ms (Java/Others) Problem Description: 把由1开始的自然数依次写下来:123456789101112……,重新分组,按四个数字为一组:1234,5678,9101,1121,3141,5161,…0348…,问第n
阅读全文
摘要:Problem description You have a Petri dish with bacteria and you are preparing to dive into the harsh micro-world. But, unfortunately, you don't have a
阅读全文
摘要:Problem description Mr. Santa asks all the great programmers of the world to solve a trivial problem. He gives them an integer m and asks for the numb
阅读全文
摘要:Problem description Little Petya very much likes arrays consisting of n integers, where each of them is in the range from 1 to 109, inclusive. Recentl
阅读全文
摘要:Problem description Vasya plays the sleuth with his friends. The rules of the game are as follows: those who play for the first time, that is Vasya is
阅读全文
摘要:Problem description It is the middle of 2018 and Maria Stepanovna, who lives outside Krasnokamensk (a town in Zabaikalsky region), wants to rent three
阅读全文
摘要:Problem description New Year is coming in Line World! In this world, there are n cells numbered by integers from 1 to n, as a 1 × n board. People live
阅读全文
摘要:Problem description So, the New Year holidays are over. Santa Claus and his colleagues can take a rest and have guests at last. When two "New Year and
阅读全文
摘要:Problem description Vasya has n pairs of socks. In the morning of each day Vasya has to put on a pair of socks before he goes to school. When he comes
阅读全文
摘要:Problem description Recently, Anton has found a set. The set consists of small English letters. Anton carefully wrote out all the letters from the set
阅读全文
摘要:Problem description Vanya and his friends are walking along the fence of height h and they do not want the guard to notice them. In order to achieve t
阅读全文
摘要:Problem description Xenia lives in a city that has n houses built along the main ringroad. The ringroad houses are numbered 1 through n in the clockwi
阅读全文
摘要:Problem description Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a "Double Cola" drink vending machine; there are no other people i
阅读全文
摘要:Problem description Fox Ciel starts to learn programming. The first task is drawing a fox! However, that turns out to be too hard for a beginner, so s
阅读全文
摘要:Problem description Haiku is a genre of Japanese traditional poetry. A haiku poem consists of 17 syllables split into three phrases, containing 5, 7 a
阅读全文
摘要:Problem description There are n cows playing poker at a table. For the current betting phase, each player's status is either "ALLIN", "IN", or "FOLDED
阅读全文
摘要:Problem description Manao works on a sports TV. He's spent much time watching the football games of some country. After a while he began to notice dif
阅读全文
摘要:Problem description Vasily the Programmer loves romance, so this year he decided to illuminate his room with candles. Vasily has a candles.When Vasily
阅读全文
摘要:Problem description Valera the Horse is going to the party with friends. He has been following the fashion trends for a while, and he knows that it is
阅读全文
摘要:Problem description A word or a sentence in some language is called a pangram if all the characters of the alphabet of this language appear in it at l
阅读全文
摘要:Problem description Bob is preparing to pass IQ test. The most frequent task in this test is to find out which one of the given n numbers differs from
阅读全文
摘要:Problem description Anton likes to play chess, and so does his friend Danik. Once they have played n games in a row. For each game it's known who was
阅读全文
摘要:Problem description One way to create a task is to learn from math. You can generate some random math statement or modify some theorems to get somethi
阅读全文
摘要:Problem Description: Problem Description: 大B和小b合作出一道程序设计月赛的题,他们的想法是给定一个N,输出与N相邻的一个素数,但就输出比N小的素数还是输出比N大的素数上,他们出现了分歧。大B觉得应该输出比N大的素数,小b觉得应该输出比N小的素数。于是他们决
阅读全文
摘要:Problem Description: A国有n座城市,编号为1~n,这n个城市之间没有任何交通线路,所以不同城市的居民之间不能互通,所以A国的人打算为这n个城市建立k条交通线(两座城市之间可以有两条及以上的线路),交通线只能贯穿两座城市p, q(存在p=q的情况,不用考虑但会占用一条交通线),
阅读全文
摘要:鸡兔同笼 鸡兔同笼 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 今有雉兔同笼,上有n头,下有m足,问雉兔各几何? Problem Descriptio
阅读全文
摘要:魔仙岛探险 魔仙岛探险 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小敏通过秘密方法得到一张不完整的魔仙岛航拍地图。魔仙岛由一个主岛和一些附属岛屿组成
阅读全文
摘要:螺旋填数 螺旋填数 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 一天,小明在研究蜗牛的壳时,对其螺旋状的花纹感到十分有趣。于是他回到了家中,画出了一个
阅读全文
摘要:开心消消乐 开心消消乐 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 大白最近喜欢上了开心消消乐,于是英语基础好的他准备让课文中英语句子也来充当游戏的主
阅读全文
摘要:Problem description Little Chris is bored during his physics lessons (too easy), so he has built a toy box to keep himself occupied. The box is specia
阅读全文
摘要:Problem description Mad scientist Mike entertains himself by arranging rows of dominoes. He doesn't need dominoes, though: he uses rectangular magnets
阅读全文
摘要:Problem description Vasya is very upset that many people on the Net mix uppercase and lowercase letters in one word. That's why he decided to invent a
阅读全文
摘要:Problem description A Ministry for Defense sent a general to inspect the Super Secret Military Squad under the command of the Colonel SuperDuper. Havi
阅读全文
摘要:Problem description Shapur was an extremely gifted student. He was great at everything including Combinatorics, Algebra, Number Theory, Geometry, Calc
阅读全文
摘要:Problem description There is a game called "I Wanna Be the Guy", consisting of n levels. Little X and his friend Little Y are addicted to the game. Ea
阅读全文
摘要:Problem description A family consisting of father bear, mother bear and son bear owns three cars. Father bear can climb into the largest car and he li
阅读全文
摘要:Problem description One day Ms Swan bought an orange in a shop. The orange consisted of n·k segments, numbered with integers from 1 to n·k. There were
阅读全文
摘要:Problem description Dima loves representing an odd number as the sum of multiple primes, and Lisa loves it when there are at most three primes. Help t
阅读全文
摘要:Problem description Hooray! Berl II, the king of Berland is making a knight tournament. The king has already sent the message to all knights in the ki
阅读全文
摘要:Problem description In the evening, after the contest Ilya was bored, and he really felt like maximizing. He remembered that he had a set of n sticks
阅读全文
摘要:Problem description SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots f
阅读全文
摘要:Problem description The weather is fine today and hence it's high time to climb the nearby pine and enjoy the landscape. The pine's trunk includes sev
阅读全文
摘要:Problem description After winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made of
阅读全文
摘要:Problem description Being a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (nat
阅读全文
摘要:Problem description Vasya works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to
阅读全文
摘要:Problem description An elephant decided to visit his friend. It turned out that the elephant's house is located at point 0 and his friend's house is l
阅读全文
摘要:Problem description For a positive integer n let's define a function f: f(n) = - 1 + 2 - 3 + .. + ( - 1)nn Your task is to calculate f(n) for a given
阅读全文
摘要:Problem description Little Petya very much likes gifts. Recently he has received a new laptop as a New Year gift from his mother. He immediately decid
阅读全文
摘要:Problem description Oleg the bank client checks share prices every day. There are n share prices he is interested in. Today he observed that each seco
阅读全文
摘要:Problem description While swimming at the beach, Mike has accidentally dropped his cellphone into the water. There was no worry as he bought a cheap r
阅读全文
摘要:Problem description There is a legend in the IT City college. A student that failed to answer all questions on the game theory exam is given one more
阅读全文
摘要:Problem description «One dragon. Two dragon. Three dragon», — the princess was counting. She had trouble falling asleep, and she got bored of counting
阅读全文
摘要:Problem description Petya studies in a school and he adores Maths. His class has been studying arithmetic expressions. On the last class the teacher w
阅读全文
摘要:Problem description Kefa decided to make some money doing business on the Internet for exactly n days. He knows that on the i-th day (1 ≤ i ≤ n) he ma
阅读全文
摘要:Problem description A TV show called "Guess a number!" is gathering popularity. The whole Berland, the old and the young, are watching the show. The r
阅读全文
摘要:Problem description Nian is a monster which lives deep in the oceans. Once a year, it shows up on the land, devouring livestock and even people. In or
阅读全文
摘要:Problem description Unary is a minimalistic Brainfuck dialect in which programs are written using only one token. Brainfuck programs use 8 commands: "
阅读全文
摘要:Problem description The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided
阅读全文
摘要:Problem description It seems like the year of 2013 came only yesterday. Do you know a curious fact? The year of 2013 is the first year after the old 1
阅读全文
摘要:Problem description The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berla
阅读全文
摘要:Problem description A boy Bob likes to draw. Not long ago he bought a rectangular graph (checked) sheet with n rows and m columns. Bob shaded some of
阅读全文
摘要:Problem description One day little Vasya found mom's pocket book. The book had n names of her friends and unusually enough, each name was exactly m le
阅读全文
摘要:Problem description During the break the schoolchildren, boys and girls, formed a queue of n people in the canteen. Initially the children stood in th
阅读全文
摘要:Problem description Petya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal representations contain only the
阅读全文
摘要:Problem description George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also enter
阅读全文
摘要:支离破碎 支离破碎 Time Limit: 4000/2000ms (Java/Others) Time Limit: 4000/2000ms (Java/Others) Problem Description: 远古时期有一位魔王想向一座宫殿里的公主求婚。为了考验魔王的智力,太后给了他这样一道题:
阅读全文
摘要:Problem description Those days, many boys use beautiful girls' photos as avatars in forums. So it is pretty hard to tell the gender of a user at the f
阅读全文
摘要:Problem description A soldier wants to buy w bananas in the shop. He has to pay k dollars for the first banana, 2k dollars for the second one and so o
阅读全文
摘要:Problem description A guy named Vasya attends the final grade of a high school. One day Vasya decided to watch a match of his favorite hockey team. An
阅读全文
摘要:Problem description A string is a palindrome if it reads the same from the left to the right and from the right to the left. For example, the strings
阅读全文
摘要:Problem description Polycarpus is the director of a large corporation. There are n secretaries working for the corporation, each of them corresponds v
阅读全文
摘要:Problem description Valera loves his garden, where n fruit trees grow. This year he will enjoy a great harvest! On the i-th tree bi fruit grow, they w
阅读全文
摘要:Problem description Imagine that you have a twin brother or sister. Having another person that looks exactly like you seems very unusual. It's hard to
阅读全文
摘要:Problem description Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the
阅读全文
摘要:Problem description HQ9+ is a joke programming language which has only four one-character instructions: "H" prints "Hello, World!", "Q" prints the sou
阅读全文
摘要:Problem description There are n students in a school class, the rating of the i-th student on Codehorses is ai. You have to form a team consisting of
阅读全文
摘要:Problem description You are given nn strings. Each string consists of lowercase English letters. Rearrange (reorder) the given strings in such a way t
阅读全文
摘要:Problem description Alice and Bob like games. And now they are ready to start a new game. They have placed n chocolate bars in a line. Alice starts to
阅读全文
摘要:题目描述 好了,现在是小托米的故事啦~~~ 可爱的小托米得到了n瓶饮料. 但他不小心把开盖的工具弄丢了,所以他只能利用饮料瓶来开盖. 已知第i个瓶子的品牌为ai,且其能打开bi品牌的瓶子. 问有几瓶饮料托米无法喝到. 被用于打开饮料瓶的瓶子不一定需要被打开. 一个瓶子不能打开其本身. 输入描述: 第
阅读全文
摘要:Problem description Petya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits
阅读全文
摘要:Problem description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading
阅读全文
摘要:Problem description wHAT DO WE NEED cAPS LOCK FOR? Caps lock is a computer keyboard key. Pressing it sets an input mode in which typed letters are cap
阅读全文
摘要:Problem description Vasya has recently learned to type and log on to the Internet. He immediately entered a chat room and decided to say hello to ever
阅读全文
摘要:Problem description You've got a 5 × 5 matrix, consisting of 24 zeroes and a single number one. Let's index the matrix rows by numbers from 1 to 5 fro
阅读全文

浙公网安备 33010602011771号