随笔分类 -  简单_基础专题

摘要: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 霜雪千年 阅读(218) 评论(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 霜雪千年 阅读(191) 评论(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 霜雪千年 阅读(513) 评论(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 霜雪千年 阅读(231) 评论(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 霜雪千年 阅读(408) 评论(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 霜雪千年 阅读(423) 评论(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 霜雪千年 阅读(499) 评论(0) 推荐(0)
摘要:Problem description Alyona's mother wants to present an array of n non-negative integers to Alyona. The array should be special. Alyona is a capriciou 阅读全文
posted @ 2018-05-31 19:50 霜雪千年 阅读(282) 评论(0) 推荐(0)
摘要:Problem description Linear Kingdom has exactly one tram line. It has n stops, numbered from 1 to n in the order of tram's movement. At the i-th stop a 阅读全文
posted @ 2018-05-31 18:24 霜雪千年 阅读(262) 评论(0) 推荐(0)
摘要:Problem description As you may know, MemSQL has American offices in both San Francisco and Seattle. Being a manager in the company, you travel a lot b 阅读全文
posted @ 2018-05-30 17:32 霜雪千年 阅读(332) 评论(0) 推荐(0)
摘要:Problem description Programmer Rostislav got seriously interested in the Link/Cut Tree data structure, which is based on Splay trees. Specifically, he 阅读全文
posted @ 2018-05-30 17:13 霜雪千年 阅读(185) 评论(0) 推荐(0)
摘要:Problem description One day three best friends Petya, Vasya and Tonya decided to form a team and take part in programming contests. Participants are u 阅读全文
posted @ 2018-05-29 15:51 霜雪千年 阅读(265) 评论(0) 推荐(0)
摘要:Problem description We often go to supermarkets to buy some fruits or vegetables, and on the tag there prints the price for a kilo. But in some superm 阅读全文
posted @ 2018-05-29 15:31 霜雪千年 阅读(305) 评论(0) 推荐(0)
摘要:Problem description Eleven wants to choose a new name for herself. As a bunch of geeks, her friends suggested an algorithm to choose a name for her. E 阅读全文
posted @ 2018-05-29 15:24 霜雪千年 阅读(153) 评论(0) 推荐(0)
摘要:Problem description Fafa owns a company that works on huge projects. There are n employees in Fafa's company. Whenever the company has a new project t 阅读全文
posted @ 2018-05-29 15:19 霜雪千年 阅读(263) 评论(0) 推荐(0)
摘要:Problem description Luba thinks about watering her garden. The garden can be represented as a segment of length k. Luba has got n buckets, the i-th bu 阅读全文
posted @ 2018-05-29 15:05 霜雪千年 阅读(288) 评论(0) 推荐(0)
摘要:Problem description We consider a positive integer perfect, if and only if the sum of its digits is exactly 10. Given a positive integer k, your task 阅读全文
posted @ 2018-05-29 14:41 霜雪千年 阅读(147) 评论(0) 推荐(0)
摘要:Problem description Little girl Tanya is learning how to decrease a number by one, but she does it wrong with a number consisting of two or more digit 阅读全文
posted @ 2018-05-29 14:33 霜雪千年 阅读(127) 评论(0) 推荐(0)