06 2018 档案

摘要:Problem Description: 双十一大家都在买买买,可忙坏了快递小哥了。zl和皮卡鸡在大伙在剁手的时候,偷偷去快递公司那当兼职赚钱了。zl将箱子一个个叠起来,皮卡鸡将那堆箱子搬到别的地方去,但由于箱子太重,他每次只能拿最上面的一个。zl一边叠箱子,皮卡鸡就一边把目前最上面的箱子搬走,但由 阅读全文
posted @ 2018-06-28 21:43 霜雪千年 阅读(520) 评论(0) 推荐(0)
摘要:夏天到了,又到了出游的季节 夏天到了,又到了出游的季节 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: QWER最近无心打代码,于是带着n套衣服出去浪.但 阅读全文
posted @ 2018-06-28 21:18 霜雪千年 阅读(162) 评论(0) 推荐(0)
摘要:迟到的祝福(四) 迟到的祝福(四) Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 据说前几天是雁来师姐的生日,作为一个15级的小鲜肉A,没及时给师姐送去 阅读全文
posted @ 2018-06-28 20:57 霜雪千年 阅读(157) 评论(0) 推荐(0)
摘要:梦中的函数 梦中的函数 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 寒假那段时间,每天刷题的小G连做梦都是代码,于是有了这道题。 给定一个数组a,求g 阅读全文
posted @ 2018-06-28 20:23 霜雪千年 阅读(140) 评论(0) 推荐(0)
摘要:ZHANGZHANG喜欢手表 ZHANGZHANG喜欢手表 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: ZHANGZHANG刚过生日,收到了好朋友NE 阅读全文
posted @ 2018-06-28 19:31 霜雪千年 阅读(328) 评论(0) 推荐(0)
摘要:出题人这样不好吧 出题人这样不好吧 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 作为编协的第一次月赛,肯定是要有防AK(ALL KILL)的题目的,只 阅读全文
posted @ 2018-06-28 10:47 霜雪千年 阅读(256) 评论(0) 推荐(0)
摘要:Mystery Mystery Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: No Description Problem Description: I 阅读全文
posted @ 2018-06-27 22:16 霜雪千年 阅读(227) 评论(0) 推荐(0)
摘要:Repeating Characters Repeating Characters Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: For this pr 阅读全文
posted @ 2018-06-27 20:57 霜雪千年 阅读(180) 评论(0) 推荐(0)
摘要:题目这么难,来局愉快的昆特牌吧 题目这么难,来局愉快的昆特牌吧 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小Z打比赛,然而比赛太难了,他坐在电脑面前 阅读全文
posted @ 2018-06-26 23:08 霜雪千年 阅读(251) 评论(0) 推荐(0)
摘要:水题你信吗 水题你信吗 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 某发最近又认识了很多妹(han)子,可是妹(han)子一多不免有时会忘记那么一两个 阅读全文
posted @ 2018-06-26 21:29 霜雪千年 阅读(140) 评论(0) 推荐(0)
摘要:滚动AC 滚动AC Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小光最近拉了几个同学入ACM的坑,为鼓励A题,就增加奖励制度:每AC三道就送一道,且可 阅读全文
posted @ 2018-06-26 21:09 霜雪千年 阅读(127) 评论(0) 推荐(0)
摘要:Problem Description: 输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否为该栈的弹出顺序。假设压入栈的所有数字均不相等。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个弹出序列,但4,3,5,1,2就不可能是该压栈序列的弹出 阅读全文
posted @ 2018-06-26 20:04 霜雪千年 阅读(228) 评论(0) 推荐(0)
摘要:黯然销魂? 黯然销魂? Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 发神集训表现出色,决定要送他鸡翅,但是锴神决定不让他那么容易拿到,所以给鸡翅包了很 阅读全文
posted @ 2018-06-26 13:31 霜雪千年 阅读(198) 评论(0) 推荐(0)
摘要:Cipher Cipher Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 只剩两个小时就要正式开始第一次月赛了,大四师兄决定还是来出一道,找点存在感,出 阅读全文
posted @ 2018-06-25 23:45 霜雪千年 阅读(252) 评论(0) 推荐(0)
摘要:小凯的排序 小凯的排序 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 调皮的小凯喜欢排序,拿到什么东西都要排一下序。现在他觉得单一的递增递减排序已经不能 阅读全文
posted @ 2018-06-25 22:18 霜雪千年 阅读(254) 评论(0) 推荐(0)
摘要:Problem Description: Problem Description: 哥德巴赫猜想大概是这么一回事:“偶数(>=4) == 两个质数的和”,至于是不是、成不成立,随它吧。 Input: 多组数据,每组一个偶数n(4<=n<=10^6) Input: Output: 若能分解则输出这两个 阅读全文
posted @ 2018-06-25 18:38 霜雪千年 阅读(473) 评论(0) 推荐(0)
摘要:小G的循环 小G的循环 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 一回生,二回熟,三回就腻,小G用for,while循环用得太多了,累觉不爱。于是自 阅读全文
posted @ 2018-06-25 12:14 霜雪千年 阅读(127) 评论(0) 推荐(0)
摘要:三角形蛇形矩阵 三角形蛇形矩阵 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小铠觉得各类题型是要温故而知新的,所以他叫小发出一道类似做过的题。其实,一 阅读全文
posted @ 2018-06-25 10:12 霜雪千年 阅读(528) 评论(0) 推荐(0)
摘要:小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万万亿+ 阅读全文
posted @ 2018-06-24 22:37 霜雪千年 阅读(131) 评论(0) 推荐(0)
摘要:整数反转 整数反转 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 给定一个32位int型的整数,把这个整数反着输出,如123,输出321。反转过程中有可 阅读全文
posted @ 2018-06-24 14:58 霜雪千年 阅读(242) 评论(0) 推荐(0)
摘要:Power Mouth Power Mouth Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: Your task is to calculate the 阅读全文
posted @ 2018-06-24 13:42 霜雪千年 阅读(208) 评论(0) 推荐(0)
摘要:一道耗时间的水题 一道耗时间的水题 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: Do you know how to read the phone n 阅读全文
posted @ 2018-06-24 11:04 霜雪千年 阅读(203) 评论(0) 推荐(0)
摘要:Problem Description: Problem Description: Input: 输入包含多组数据(EOF),每组数据第一行是一个整数n(1<=n<=10^5),第二行有n个整数(<=10^5); Input: Output: 对于每组数据,输出小明排序算法的交换次数。 Output 阅读全文
posted @ 2018-06-23 22:02 霜雪千年 阅读(245) 评论(0) 推荐(0)
摘要:数组 数组 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 给一个数组a[n],令s[i]为数组a中比a[i]大的数的个数。求数组s。 Problem D 阅读全文
posted @ 2018-06-23 10:40 霜雪千年 阅读(202) 评论(0) 推荐(0)
摘要:名字的价值 名字的价值 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 集训终于开始了,参加集训的人很多,也就有很多名字,集训组织者发现了一件很神奇的事情 阅读全文
posted @ 2018-06-23 09:40 霜雪千年 阅读(609) 评论(0) 推荐(0)
摘要:Exponentiation Exponentiation Time Limit: 2000/1000ms (Java/Others) Problem Description: Problems involving the computation of exact values of very la 阅读全文
posted @ 2018-06-22 22:53 霜雪千年 阅读(201) 评论(0) 推荐(0)
摘要:Problem Description: Problem Description: 端午节快到了,小蛋准备到集市上买粽子。于是周六这天,小蛋和舍友搭着公交到了西南市场。说来也怪,这天集市上就只有n个人在卖粽子,整齐地排成一列,而且第i(1<=i<=n)个人前面有Xi个粽子堆在一起。小蛋这人平时很大方 阅读全文
posted @ 2018-06-22 21:03 霜雪千年 阅读(212) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2018-06-21 23:54 霜雪千年 阅读(1194) 评论(0) 推荐(0)
摘要:写数字 Time Limit: 2000/1000ms (Java/Others) Problem Description: 把由1开始的自然数依次写下来:123456789101112……,重新分组,按四个数字为一组:1234,5678,9101,1121,3141,5161,…0348…,问第n 阅读全文
posted @ 2018-06-20 11:56 霜雪千年 阅读(225) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-19 20:04 霜雪千年 阅读(141) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-19 07:07 霜雪千年 阅读(168) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-18 23:45 霜雪千年 阅读(180) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-18 23:28 霜雪千年 阅读(223) 评论(0) 推荐(0)
摘要:Problem description It is the middle of 2018 and Maria Stepanovna, who lives outside Krasnokamensk (a town in Zabaikalsky region), wants to rent three 阅读全文
posted @ 2018-06-18 23:10 霜雪千年 阅读(153) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 13:22 霜雪千年 阅读(211) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 11:30 霜雪千年 阅读(248) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 11:16 霜雪千年 阅读(153) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 11:03 霜雪千年 阅读(117) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 10:21 霜雪千年 阅读(119) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 10:04 霜雪千年 阅读(203) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 08:45 霜雪千年 阅读(188) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-17 07:30 霜雪千年 阅读(465) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-14 00:08 霜雪千年 阅读(312) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-13 23:57 霜雪千年 阅读(305) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-13 21:26 霜雪千年 阅读(359) 评论(0) 推荐(0)
摘要:Problem description Vasily the Programmer loves romance, so this year he decided to illuminate his room with candles. Vasily has a candles.When Vasily 阅读全文
posted @ 2018-06-13 18:03 霜雪千年 阅读(316) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-13 17:46 霜雪千年 阅读(472) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-13 17:40 霜雪千年 阅读(402) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-11 23:29 霜雪千年 阅读(570) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-11 23:25 霜雪千年 阅读(366) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-11 23:20 霜雪千年 阅读(467) 评论(0) 推荐(0)
摘要:Problem Description: Problem Description: 大B和小b合作出一道程序设计月赛的题,他们的想法是给定一个N,输出与N相邻的一个素数,但就输出比N小的素数还是输出比N大的素数上,他们出现了分歧。大B觉得应该输出比N大的素数,小b觉得应该输出比N小的素数。于是他们决 阅读全文
posted @ 2018-06-11 21:45 霜雪千年 阅读(341) 评论(0) 推荐(0)
摘要:Problem Description: A国有n座城市,编号为1~n,这n个城市之间没有任何交通线路,所以不同城市的居民之间不能互通,所以A国的人打算为这n个城市建立k条交通线(两座城市之间可以有两条及以上的线路),交通线只能贯穿两座城市p, q(存在p=q的情况,不用考虑但会占用一条交通线), 阅读全文
posted @ 2018-06-11 21:35 霜雪千年 阅读(465) 评论(0) 推荐(0)
摘要:鸡兔同笼 鸡兔同笼 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 今有雉兔同笼,上有n头,下有m足,问雉兔各几何? Problem Descriptio 阅读全文
posted @ 2018-06-11 21:19 霜雪千年 阅读(745) 评论(0) 推荐(0)
摘要:魔仙岛探险 魔仙岛探险 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小敏通过秘密方法得到一张不完整的魔仙岛航拍地图。魔仙岛由一个主岛和一些附属岛屿组成 阅读全文
posted @ 2018-06-11 21:05 霜雪千年 阅读(389) 评论(0) 推荐(0)
摘要:螺旋填数 螺旋填数 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 一天,小明在研究蜗牛的壳时,对其螺旋状的花纹感到十分有趣。于是他回到了家中,画出了一个 阅读全文
posted @ 2018-06-11 20:40 霜雪千年 阅读(875) 评论(0) 推荐(0)
摘要:开心消消乐 开心消消乐 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 大白最近喜欢上了开心消消乐,于是英语基础好的他准备让课文中英语句子也来充当游戏的主 阅读全文
posted @ 2018-06-11 13:16 霜雪千年 阅读(1049) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-10 07:56 霜雪千年 阅读(158) 评论(0) 推荐(0)
摘要:Problem description Mad scientist Mike entertains himself by arranging rows of dominoes. He doesn't need dominoes, though: he uses rectangular magnets 阅读全文
posted @ 2018-06-10 07:53 霜雪千年 阅读(288) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-10 07:48 霜雪千年 阅读(904) 评论(0) 推荐(0)
摘要:Problem description A Ministry for Defense sent a general to inspect the Super Secret Military Squad under the command of the Colonel SuperDuper. Havi 阅读全文
posted @ 2018-06-09 13:47 霜雪千年 阅读(376) 评论(0) 推荐(0)
摘要:Problem description Shapur was an extremely gifted student. He was great at everything including Combinatorics, Algebra, Number Theory, Geometry, Calc 阅读全文
posted @ 2018-06-09 13:39 霜雪千年 阅读(329) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-09 13:34 霜雪千年 阅读(458) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-09 00:34 霜雪千年 阅读(217) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 23:26 霜雪千年 阅读(257) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 22:48 霜雪千年 阅读(443) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 20:48 霜雪千年 阅读(318) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 20:01 霜雪千年 阅读(398) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 19:28 霜雪千年 阅读(272) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 17:45 霜雪千年 阅读(288) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 17:16 霜雪千年 阅读(278) 评论(0) 推荐(0)
摘要:Problem description Being a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (nat 阅读全文
posted @ 2018-06-08 17:09 霜雪千年 阅读(253) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-08 16:38 霜雪千年 阅读(303) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-07 12:36 霜雪千年 阅读(350) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-07 12:30 霜雪千年 阅读(208) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-07 12:20 霜雪千年 阅读(871) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-06 21:37 霜雪千年 阅读(144) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-06 21:20 霜雪千年 阅读(248) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-06 20:54 霜雪千年 阅读(192) 评论(0) 推荐(0)
摘要:Problem description «One dragon. Two dragon. Three dragon», — the princess was counting. She had trouble falling asleep, and she got bored of counting 阅读全文
posted @ 2018-06-06 20:48 霜雪千年 阅读(445) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-06 20:33 霜雪千年 阅读(251) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-06 17:54 霜雪千年 阅读(390) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-05 22:50 霜雪千年 阅读(320) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-05 21:11 霜雪千年 阅读(379) 评论(0) 推荐(0)
摘要:Problem description Unary is a minimalistic Brainfuck dialect in which programs are written using only one token. Brainfuck programs use 8 commands: " 阅读全文
posted @ 2018-06-05 20:23 霜雪千年 阅读(442) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-05 19:59 霜雪千年 阅读(278) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-05 19:42 霜雪千年 阅读(393) 评论(0) 推荐(0)
摘要:Problem description The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berla 阅读全文
posted @ 2018-06-05 19:35 霜雪千年 阅读(350) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-04 23:56 霜雪千年 阅读(300) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-04 23:41 霜雪千年 阅读(353) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-04 23:12 霜雪千年 阅读(411) 评论(0) 推荐(0)
摘要:Problem description Petya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal representations contain only the 阅读全文
posted @ 2018-06-04 22:44 霜雪千年 阅读(442) 评论(0) 推荐(0)
摘要:Problem description George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also enter 阅读全文
posted @ 2018-06-04 22:31 霜雪千年 阅读(220) 评论(0) 推荐(0)
摘要:支离破碎 支离破碎 Time Limit: 4000/2000ms (Java/Others) Time Limit: 4000/2000ms (Java/Others) Problem Description: 远古时期有一位魔王想向一座宫殿里的公主求婚。为了考验魔王的智力,太后给了他这样一道题: 阅读全文
posted @ 2018-06-03 15:52 霜雪千年 阅读(177) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-03 13:10 霜雪千年 阅读(707) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-03 12:53 霜雪千年 阅读(193) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-03 12:48 霜雪千年 阅读(527) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-03 12:16 霜雪千年 阅读(431) 评论(0) 推荐(0)
摘要:Problem description Polycarpus is the director of a large corporation. There are n secretaries working for the corporation, each of them corresponds v 阅读全文
posted @ 2018-06-03 11:54 霜雪千年 阅读(236) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-03 11:17 霜雪千年 阅读(303) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-02 13:21 霜雪千年 阅读(365) 评论(0) 推荐(0)
摘要:Problem description Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the 阅读全文
posted @ 2018-06-02 13:03 霜雪千年 阅读(471) 评论(0) 推荐(0)
摘要:Problem description HQ9+ is a joke programming language which has only four one-character instructions: "H" prints "Hello, World!", "Q" prints the sou 阅读全文
posted @ 2018-06-02 12:52 霜雪千年 阅读(410) 评论(0) 推荐(0)
摘要: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  阅读全文
posted @ 2018-06-02 11:53 霜雪千年 阅读(429) 评论(0) 推荐(0)
摘要:Problem description You are given nn strings. Each string consists of lowercase English letters. Rearrange (reorder) the given strings in such a way t 阅读全文
posted @ 2018-06-02 11:29 霜雪千年 阅读(687) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-02 11:00 霜雪千年 阅读(713) 评论(0) 推荐(0)
摘要:题目描述 好了,现在是小托米的故事啦~~~ 可爱的小托米得到了n瓶饮料. 但他不小心把开盖的工具弄丢了,所以他只能利用饮料瓶来开盖. 已知第i个瓶子的品牌为ai,且其能打开bi品牌的瓶子. 问有几瓶饮料托米无法喝到. 被用于打开饮料瓶的瓶子不一定需要被打开. 一个瓶子不能打开其本身. 输入描述: 第 阅读全文
posted @ 2018-06-01 21:30 霜雪千年 阅读(329) 评论(0) 推荐(1)
摘要:Problem description Petya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits 阅读全文
posted @ 2018-06-01 19:49 霜雪千年 阅读(1829) 评论(0) 推荐(0)
摘要:Problem description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading 阅读全文
posted @ 2018-06-01 19:19 霜雪千年 阅读(235) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-01 18:55 霜雪千年 阅读(415) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-01 18:46 霜雪千年 阅读(436) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2018-06-01 18:40 霜雪千年 阅读(515) 评论(0) 推荐(0)