
AtCoder
Alex_McAvoy
想要成为渔夫的猎手
展开
-
Built?(AtCoder-2643)
Problem DescriptionThere are N towns on a plane. The i-th town is located at the coordinates (xi,yi). There may be more than one town at the same coordinates.You can build a road between two town...原创 2019-07-19 16:59:14 · 763 阅读 · 0 评论 -
Sugar Water(AtCoder-3534)
Problem DescriptionSnuke is making sugar water in a beaker. Initially, the beaker is empty. Snuke can perform the following four types of operations any number of times. He may choose not to perfor...原创 2019-06-21 18:39:20 · 422 阅读 · 0 评论 -
Restoring Road Network(AtCoder-3535)
Problem DescriptionIn Takahashi Kingdom, which once existed, there are N cities, and some pairs of cities are connected bidirectionally by roads. The following are known about the road network:Pe...原创 2019-06-21 14:41:46 · 270 阅读 · 0 评论 -
Derangement(AtCoder-3525)
Problem DescriptionYou are given a permutation p1,p2,…,pN consisting of 1,2,..,N. You can perform the following operation any number of times (possibly zero):Operation: Swap two adjacent elements...原创 2019-06-21 13:53:23 · 365 阅读 · 0 评论 -
Together(AtCoder-3524)
Problem DescriptionYou are given an integer sequence of length N, a1,a2,…,aN.For each 1≤i≤N, you have three choices: add 1 to ai, subtract 1 from ai or do nothing.After these operations, you se...原创 2019-06-21 13:45:51 · 453 阅读 · 0 评论 -
Grid Coloring(AtCoder-2687)
Problem DescriptionWe 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≤i≤N)...原创 2019-06-16 19:39:53 · 459 阅读 · 0 评论 -
Coloring Dominoes(Atcoder-2697)
Problem DescriptionWe have a board with a 2×N grid. Snuke covered the board with N dominoes without overlaps. Here, a domino can cover a 1×2 or 2×1 square.Then, Snuke decided to paint these domin...原创 2019-06-20 16:36:16 · 421 阅读 · 0 评论 -
Make a Rectangle(Atcoder-2696)
Problem DescriptionWe have N sticks with negligible thickness. The length of the i-th stick is Ai.Snuke wants to select four different sticks from these sticks and form a rectangle (including a s...原创 2019-06-20 16:09:16 · 559 阅读 · 0 评论 -
4-adjacent(AtCoder-2686)
Problem DescriptionWe 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:Fo...原创 2019-06-15 17:10:04 · 491 阅读 · 0 评论 -
Decrease (Judge ver.)(AtCoder-2662)
Problem DescriptionWe have a sequence of length N consisting of non-negative integers. Consider performing the following operation on this sequence until the largest element in this sequence become...原创 2019-06-15 16:42:26 · 472 阅读 · 0 评论 -
Decrease (Contestant ver.)(AtCoder-2661)
Problem DescriptionWe have a sequence of length N consisting of non-negative integers. Consider performing the following operation on this sequence until the largest element in this sequence become...原创 2019-06-15 16:02:17 · 333 阅读 · 0 评论 -
Fennec VS. Snuke(AtCoder-2655)
Problem DescriptionFennec and Snuke are playing a board game.On the board, there are N cells numbered 1 through N, and N−1 roads, each connecting two cells. Cell ai is adjacent to Cell bi through...原创 2019-06-15 15:00:49 · 643 阅读 · 0 评论 -
Splitting Pile(AtCoder-2654)
Problem DescriptionSnuke 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 f...原创 2019-06-15 13:44:08 · 477 阅读 · 0 评论 -
11(AtCoder-2649)
Problem DescriptionYou are given an integer sequence of length n+1, a1,a2,…,an+1, which consists of the n integers 1,…,n. It is known that each of the n integers 1,…,n appears at least once in this...原创 2019-06-14 22:04:58 · 301 阅读 · 0 评论 -
Widespread(AtCoder-2580)
Problem DescriptionYou are going out for a walk, when you suddenly encounter N monsters. Each monster has a parameter called health, and the health of the i-th monster is hi at the moment of encoun...原创 2019-06-07 16:55:45 · 742 阅读 · 1 评论 -
3N Numbers(AtCoder-2566)
Problem DescriptionLet N be a positive integer.There is a numerical sequence of length 3N, a=(a1,a2,…,a3N). Snuke is constructing a new sequence of length 2N, a', by removing exactly N elements f...原创 2019-06-07 16:01:45 · 410 阅读 · 0 评论 -
Snuke Festival(AtCoder-3620)
Problem DescriptionThe season for Snuke Festival has come again this year. First of all, Ringo will perform a ritual to summon Snuke. For the ritual, he needs an altar, which consists of three part...原创 2019-06-22 11:36:37 · 375 阅读 · 0 评论 -
Small Multiple(AtCoder-3621)
Problem DescriptionFind the smallest possible sum of the digits in the decimal notation of a positive multiple of K.Constraints2≤K≤105 Kis an integer.InputInput is given from Standard Inpu...原创 2019-06-22 12:47:32 · 420 阅读 · 0 评论 -
pushpush(AtCoder-2648)
Problem DescriptionYou 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:Append a...原创 2019-07-18 16:19:36 · 368 阅读 · 0 评论 -
Chocolate Bar(AtCoder-2565)
Problem DescriptionThere is a bar of chocolate with a height of H blocks and a width of W blocks. Snuke is dividing this bar into exactly three pieces. He can only cut the bar along borders of bloc...原创 2019-07-18 16:15:08 · 688 阅读 · 0 评论 -
Bugged(AtCoder-2579)
Problem DescriptionYou are taking a computer-based examination. The examination consists of N questions, and the score allocated to the i-th question is si. Your answer to each question will be jud...原创 2019-07-18 16:14:25 · 400 阅读 · 0 评论 -
Cat Snuke and a Voyage(AtCoder-2660)
Problem DescriptionIn Takahashi Kingdom, there is an archipelago ofNislands, called Takahashi Islands. For convenience, we will call them Island1, Island2, ..., IslandN.There areMkinds of ...原创 2019-07-18 16:11:08 · 338 阅读 · 0 评论 -
Reconciled?(AtCoder-2642)
Problem DescriptionSnuke has N dogs and M monkeys. He wants them to line up in a row.As a Japanese saying goes, these dogs and monkeys are on bad terms. ("ken'en no naka", literally "the relation...原创 2019-07-18 16:08:07 · 287 阅读 · 0 评论 -
FT Robot(AtCoder-3726)
Problem DescriptionA robot is put at the origin in a two-dimensional plane. Initially, the robot is facing in the positive x-axis direction.This robot will be given an instruction sequence s. s c...原创 2019-07-06 16:04:22 · 601 阅读 · 0 评论 -
Good sequence(AtCoder-3725)
Problem DescriptionYou are given a sequence of positive integers of length N, a=(a1,a2,…,aN). Your objective is to remove some of the elements in a so that a will be a good sequence.Here, an sequ...原创 2019-07-06 15:20:52 · 805 阅读 · 0 评论 -
Checker(AtCoder-3876)
Problem DescriptionAtCoDeer is thinking of painting an infinite two-dimensional grid in a checked pattern of side K. Here, a checked pattern of side K is a pattern where each square is painted blac...原创 2019-07-18 21:31:23 · 346 阅读 · 0 评论 -
Traveling(AtCoder-3875)
Problem DescriptionAtCoDeer the deer is going on a trip in a two-dimensional plane. In his plan, he will depart from point (0,0) at time 0, then for each i between 1 and N (inclusive), he will visi...原创 2019-07-15 18:20:20 · 519 阅读 · 0 评论 -
ABS(AtCoder-3671)
Problem DescriptionWe have a deck consisting of N cards. Each card has an integer written on it. The integer on the i-th card from the top is ai.Two people X and Y will play a game using this dec...原创 2019-06-29 16:10:34 · 331 阅读 · 0 评论 -
Wide Flip(AtCoder-3732)
Problem DescriptionYou are given a string S consisting of 0 and 1. Find the maximum integer K not greater than |S| such that we can turn all the characters of S into 0 by repeating the following op...原创 2019-07-12 19:45:28 · 333 阅读 · 0 评论 -
Multiple Gift(AtCoder-3731)
Problem DescriptionAs a token of his gratitude, Takahashi has decided to give his mother an integer sequence. The sequence A needs to satisfy the conditions below:A consists of integers between X...原创 2019-07-12 17:25:57 · 394 阅读 · 0 评论 -
Non-decreasing(AtCoder-3720)
Problem DescriptionSnuke has an integer sequence, a, of length N. The i-th element of a (1-indexed) is ai.He can perform the following operation any number of times:Operation: Choose integers x...原创 2019-07-01 19:39:22 · 329 阅读 · 0 评论 -
HSI(AtCoder-3671)
Problem DescriptionTakahashi is now competing in a programming contest, but he received TLE in a problem where the answer is YES or NO.When he checked the detailed status of the submission, there...原创 2019-06-22 18:01:42 · 381 阅读 · 0 评论 -
Not so Diverse(AtCoder-3719)
Problem DescriptionTakahashi has N balls. Initially, an integer Ai is written on the i-th ball.He would like to rewrite the integer on some balls so that there are at most K different integers wr...原创 2019-07-01 15:37:45 · 393 阅读 · 0 评论 -
Simple Knapsack(AtCoder-2556)
Problem DescriptionYou have N items and a bag of strength W. The i-th item has a weight of wi and a value of vi.You will select some of the items and put them in the bag. Here, the total weight o...原创 2019-06-06 21:20:04 · 453 阅读 · 0 评论 -
Sentou(AtCoder-2555)
Problem DescriptionIn a public bath, there is a shower which emits water for T seconds when the switch is pushed.If the switch is pushed when the shower is already emitting water, from that momen...原创 2019-06-06 20:36:47 · 622 阅读 · 0 评论 -
くんと選挙速報 / AtCoDeer and Election Report (AtCoder-2140)
Problem DescriptionAtCoDeer the deer is seeing a quick report of election results on TV. Two candidates are standing for the election: Takahashi and Aoki. The report shows the ratio of the current ...原创 2019-05-22 20:35:59 · 331 阅读 · 0 评论 -
くんと変なじゃんけん / AtCoDeer and Rock-Paper (AtCoder-2141)
Problem DescriptionAtCoDeer the deer and his friend TopCoDeer is playing a game. The game consists of N turns. In each turn, each player plays one of the two gestures, Rock and Paper, as in Rock-pa...原创 2019-05-22 20:16:02 · 422 阅读 · 0 评论 -
すぬけ君の地下鉄旅行 / Snuke's Subway Trip(AtCoder-2069)
Problem DescriptionSnuke's town has a subway system, consisting ofNstations andMrailway lines. The stations are numbered1throughN. Each line is operated by a company. Each company has an ide...原创 2019-05-21 14:05:16 · 515 阅读 · 0 评论 -
すぬけ君の塗り絵 / Snuke's Coloring(AtCoder-2068)
Problem DescriptionWe have a grid withHrows andWcolumns. At first, all cells were painted white.Snuke paintedNof these cells. Thei-th (1≤i≤N) cell he painted is the cell at theai-th row...原创 2019-05-21 13:09:25 · 401 阅读 · 0 评论 -
Lining Up(AtCoder-2271)
Problem DescriptionThere are N people, conveniently numbered 1 through N. They were standing in a row yesterday, but now they are unsure of the order in which they were standing. However, each pers...原创 2019-05-27 21:28:01 · 754 阅读 · 0 评论