
平时学习对应知识点练习题
文章平均质量分 77
Abandoninged
这个作者很懒,什么都没留下…
展开
-
A - pushpush
Problem StatementYou are given an integer sequence of length n, a1,…,an. Let us consider performing the following n operations on an empty sequence b.The i-th operation is as follows:Appen原创 2018-01-06 15:43:15 · 366 阅读 · 0 评论 -
一些题
It seems that Borya is seriously sick. He is going visit n doctors to find out the exact diagnosis. Each of the doctors needs the information about all previous visits, so Borya has to visit them in t原创 2018-01-07 11:09:26 · 420 阅读 · 0 评论 -
P - Greed
Jafar has n cans of cola. Each can is described by two integers: remaining volume of cola ai and can's capacity bi (ai ≤ bi).Jafar has decided to pour all remaining cola into just 2 cans, determin原创 2018-01-07 10:46:53 · 362 阅读 · 0 评论 -
O - Inventory
Companies always have a lot of equipment, furniture and other things. All of them should be tracked. To do this, there is an inventory number assigned with each item. It is much easier to create a dat原创 2018-01-07 10:43:49 · 351 阅读 · 0 评论 -
N - Find Extra One
You have n distinct points on a plane, none of them lie on OY axis. Check that there is a point after removal of which the remaining points are located on one side of the OY axis.InputThe fi原创 2018-01-07 10:39:41 · 289 阅读 · 0 评论 -
M - The Wall
Iahub and his friend Floyd have started painting a wall. Iahub is painting the wall red and Floyd is painting it pink. You can consider the wall being made of a very large number of bricks, numbered 1原创 2018-01-07 10:37:14 · 239 阅读 · 0 评论 -
L - Lala Land and Apple Trees
Amr lives in Lala Land. Lala Land is a very beautiful country that is located on a coordinate line. Lala Land is famous with its apple trees growing everywhere.Lala Land has exactly n apple trees. T原创 2018-01-07 10:30:36 · 408 阅读 · 0 评论 -
K - Jumbled Communication
Your best friend Adam has recently bought a RaspberryPi and some equipment, including a wireless temperaturesensor and a 433MHz receiver to receive the signalsthe sensors sends. Adam plans to use the原创 2018-01-07 10:28:01 · 437 阅读 · 0 评论 -
J - Buggy Robot
Ivan has a robot which is situated on an infinite grid. Initially the robot is standing in the starting cell (0, 0). The robot can process commands. There are four types of commands it can perform:原创 2018-01-07 10:13:00 · 625 阅读 · 0 评论 -
I - Local Extrema
You are given an array a. Some element of this array ai is a local minimum iff it is strictly less than both of its neighbours (that is, ai ai - 1 and ai ai + 1). Also the element can be called lo原创 2018-01-07 10:07:55 · 502 阅读 · 0 评论 -
H - Boxes Packing
Mishka has got n empty boxes. For every i (1 ≤ i ≤ n), i-th box is a cube with side length ai.Mishka can put a box i into another box j if the following conditions are met:i-th box is not put in原创 2018-01-07 10:01:11 · 804 阅读 · 0 评论 -
G - The Modcrab
Vova is again playing some computer game, now an RPG. In the game Vova's character received a quest: to slay the fearsome monster called Modcrab.After two hours of playing the game Vova has tracked原创 2018-01-07 09:56:11 · 558 阅读 · 0 评论 -
F - Hungry Student Problem
Ivan's classes at the university have just finished, and now he wants to go to the local CFK cafe and eat some fried chicken.CFK sells chicken chunks in small and large portions. A small portion con原创 2018-01-06 16:31:18 · 431 阅读 · 0 评论 -
E - Two Switches
Problem StatementAlice and Bob are controlling a robot. They each have one switch that controls the robot.Alice started holding down her button A second after the start-up of the robot, and rele原创 2018-01-06 16:28:47 · 604 阅读 · 0 评论 -
D - Grid Coloring
Problem StatementWe have a grid with H rows and W columns of squares. Snuke is painting these squares in colors 1, 2, …, N. Here, the following conditions should be satisfied:For each i (1原创 2018-01-06 16:19:27 · 521 阅读 · 0 评论 -
C - 4-adjacent
Problem StatementWe have a sequence of length N, a=(a1,a2,…,aN). Each ai is a positive integer.Snuke's objective is to permute the element in a so that the following condition is satisfied:原创 2018-01-06 16:06:05 · 421 阅读 · 0 评论 -
B - Splitting Pile
Problem StatementSnuke and Raccoon have a heap of N cards. The i-th card from the top has the integer ai written on it.They will share these cards. First, Snuke will take some number of cards原创 2018-01-06 15:55:58 · 320 阅读 · 0 评论 -
Q - ACM ICPC
In a small but very proud high school it was decided to win ACM ICPC. This goal requires to compose as many teams of three as possible, but since there were only 6students who wished to participate, t原创 2018-01-07 10:49:30 · 417 阅读 · 0 评论