From e33da5f5f12d5abcb5e9f801e7bcd3f6647a5aba Mon Sep 17 00:00:00 2001
From: Xuanyi Zhou <45059592+dyxg@users.noreply.github.com>
Date: Wed, 21 Oct 2026 14:09:59 +0000
Subject: [PATCH 1/2] docs: remove missing images from algorithmic problem
statements
---
algorithmic/problems/147/statement.txt | 2 --
algorithmic/problems/151/statement.txt | 4 +---
algorithmic/problems/157/statement.txt | 2 --
algorithmic/problems/159/statement.txt | 2 --
algorithmic/problems/160/statement.txt | 19 ++-----------------
5 files changed, 3 insertions(+), 26 deletions(-)
diff --git a/algorithmic/problems/147/statement.txt b/algorithmic/problems/147/statement.txt
index da26655af..00f4d4193 100644
--- a/algorithmic/problems/147/statement.txt
+++ b/algorithmic/problems/147/statement.txt
@@ -15,8 +15,6 @@ The satisfaction level $p_i$ of company $i$ is determined as follows.
Your task is to determine the placement of the ads so that the sum of the satisfaction levels is maximized.
The raw task reward V is $10^9 \times \sum_{i=0}^{n-1} p_i / n$ rounded to the nearest integer. This is the raw reward V; final benchmark points are defined in Scoring.
-
-
Input
--------
Input is given from Standard Input in the following format:
diff --git a/algorithmic/problems/151/statement.txt b/algorithmic/problems/151/statement.txt
index 82a226950..f1c30d90d 100644
--- a/algorithmic/problems/151/statement.txt
+++ b/algorithmic/problems/151/statement.txt
@@ -16,9 +16,7 @@ We define that a road square $(i',j')$ is visible from $(i,j)$ if and only if th
- $i=i'$ and for every $j''$ with $\min(j,j')\leq j''\leq\max(j,j')$, $(i,j'')$ is a road square, or
- $j=j'$ and for every $i''$ with $\min(i,i')\leq i''\leq\max(i,i')$, $(i'',j)$ is a road square.
-For example, in the figure below, the gray squares represent obstacles, the white and light yellow squares represent roads, and the road squares that are visible from the green circle are colored light yellow.
-
-
+In other words, visibility extends along the same row or column until an obstacle or the edge of the map is reached.
Your task is to find a route starting from a specified square $(si,sj)$, moving up, down, left, or right on road squares, and returning to $(si,sj)$, such that all the road squares become visible at least once.
The shorter the route, the higher the score.
diff --git a/algorithmic/problems/157/statement.txt b/algorithmic/problems/157/statement.txt
index 6c597a296..fd0ae1091 100644
--- a/algorithmic/problems/157/statement.txt
+++ b/algorithmic/problems/157/statement.txt
@@ -9,8 +9,6 @@ The trouble is, Takahashi had thrown away the instruction manual, so he lost the
According to his memory, the target picture was a tree.
By repeating the sliding operation, please complete a tree.
-
-
Problem Statement
--------
There are $N^2-1$ tiles on an $N \times N$ board.
diff --git a/algorithmic/problems/159/statement.txt b/algorithmic/problems/159/statement.txt
index 5bba767e9..01c1ea5ad 100644
--- a/algorithmic/problems/159/statement.txt
+++ b/algorithmic/problems/159/statement.txt
@@ -2,8 +2,6 @@ Problem Statement
--------
RectJoin is the following single-player game played with square grid paper and pencil.
-
-
Let $(0, 0)$ be the coordinates of the lower left corner of the grid paper, with the $x$-axis to the right and the $y$-axis to the top.
The coordinates of the upper right corner of the grid paper are $(N-1, N-1)$.
Initially, $M$ dots are placed on grid points, and you can repeat the following operations as many times as possible to place dots and draw rectangles on the grid paper.
diff --git a/algorithmic/problems/160/statement.txt b/algorithmic/problems/160/statement.txt
index a6c3a6d88..162b09064 100644
--- a/algorithmic/problems/160/statement.txt
+++ b/algorithmic/problems/160/statement.txt
@@ -8,12 +8,6 @@ He knows which flavor of candy each employee will put in by preliminary survey,
Since he is a clean freak, he will move the pieces of candy by tilting the box forward, backward, left, or right, just once for each piece of candy received, and eventually wants to make sure that the same type of candy is clustered together as much as possible.
Please help him by writing a program to determine the direction to tilt.
-
-
-
-
-
-Of the above three figures, only the path in the left figure satisfies the conditions.
-In the middle figure, the same tile is stepped on twice in a row.
-In the right figure, he left a tile once and then came back to the same tile.
-
-
-
-Visualization result of the sample output.
-The red circle represents the initial position, and the green circle represents the final position.
-The tiles stepped on are painted in light blue.
+Moving between two squares of the same tile is invalid, as is returning to a tile after leaving it.
Raw task objective
--------
diff --git a/algorithmic/problems/154/statement.txt b/algorithmic/problems/154/statement.txt
index 161f8448c..b447b39e7 100644
--- a/algorithmic/problems/154/statement.txt
+++ b/algorithmic/problems/154/statement.txt
@@ -83,11 +83,11 @@ We define a basic move as follows: move to a square chosen at random among the a
Each pet $i$ performs the following moves depending on $pt_i$, an integer value between $1$ and $5$ representing its type.
-1.
Cow: Perform one basic move.
-2.
Pig: Perform two basic moves.
-3.
Rabbit: Perform three basic moves.
-4.
Dog: Move toward a target person as follows. The first turn starts with no target. If it has no target, the target person is in the current position, or there exists no path to the target person, then it selects one person uniformly at random among those reachable from the current position, excluding those in the current position. If there is no such person, reset to no target and perform one basic move. Otherwise, move to an adjacent passable square that shortens the shortest distance to the target person (if there are multiple such squares, choose one of them uniformly at random), and then perform one basic move. If it reaches the destination after the first or the second move, reset to no target.
-5.
Cat: Move toward a target square as follows. The first turn starts with no target. If it has no target or there exists no path to the target square, then it selects one square uniformly at random among those reachable from the current position, excluding the current position. If there exists no such square, do nothing. Otherwise, move to an adjacent passable square that shortens the shortest distance to the target square (if there are multiple such squares, choose one of them uniformly at random), and then perform one basic move. If it reaches the destination after the first or the second move, reset to no target.
+1. Cow: Perform one basic move.
+2. Pig: Perform two basic moves.
+3. Rabbit: Perform three basic moves.
+4. Dog: Move toward a target person as follows. The first turn starts with no target. If it has no target, the target person is in the current position, or there exists no path to the target person, then it selects one person uniformly at random among those reachable from the current position, excluding those in the current position. If there is no such person, reset to no target and perform one basic move. Otherwise, move to an adjacent passable square that shortens the shortest distance to the target person (if there are multiple such squares, choose one of them uniformly at random), and then perform one basic move. If it reaches the destination after the first or the second move, reset to no target.
+5. Cat: Move toward a target square as follows. The first turn starts with no target. If it has no target or there exists no path to the target square, then it selects one square uniformly at random among those reachable from the current position, excluding the current position. If there exists no such square, do nothing. Otherwise, move to an adjacent passable square that shortens the shortest distance to the target square (if there are multiple such squares, choose one of them uniformly at random), and then perform one basic move. If it reaches the destination after the first or the second move, reset to no target.
Input Generation
diff --git a/algorithmic/problems/155/statement.txt b/algorithmic/problems/155/statement.txt
index 900100a9b..60c98635a 100644
--- a/algorithmic/problems/155/statement.txt
+++ b/algorithmic/problems/155/statement.txt
@@ -1,38 +1,12 @@
Story
--------
-A map like in the figure below is given.
-Takahashi's home is located in the square with the red circle, and AtCoder's office is located in the square with the blue circle.
+Takahashi commutes from his home to AtCoder's office on a grid map.
He memorizes his commuting route to the office as a string of characters such as DRDR, which means Down, Right, Down, and Right.
Because he is quite forgetful, he sometimes forgets some parts of the string he has memorized.
-For example, if he forgets the third character, he will move down, right, and right, and will be lost without reaching the office.
+For example, if he forgets the third character of DRDR, he will move down, right, and right instead, and may fail to reach the office.
Therefore, he decided to memorize a robust string that would allow him to reach the office with a high probability even if he forgets some parts of the string.
-For example, if he memorizes a string DRDRDR, he can reach the office even if he forgets any one of the characters.
Your task is to find a string that will allow Takahashi to reach the office quickly and with a high probability.
-
-
|
- |
-
- |
-
- |
-
-
-
- Accurate map
-
- Small map correctly representing adjacencies
-