随笔分类 -  AtCoder

摘要:G - 221 Subsequence Problem Statement For a sequence $X = (X_1, \dots, X_n)$ of positive integers, we call $X$ a 221 sequence if and only if the lengt 阅读全文
posted @ 2026-02-26 23:23 onlyblues 阅读(4) 评论(0) 推荐(0)
摘要:E - Cookies Problem Statement There are $10^{100}$ cookies of each of $N$ types. The deliciousness per cookie of the $i$-th type is $A_i$. You will ch 阅读全文
posted @ 2026-01-13 11:22 onlyblues 阅读(6) 评论(0) 推荐(0)
摘要:F - Manhattan Christmas Tree 2 Problem Statement There are $N$ Christmas trees on a two-dimensional plane. The $i$-th $(1\le i\le N)$ Christmas tree i 阅读全文
posted @ 2025-12-22 16:21 onlyblues 阅读(14) 评论(0) 推荐(0)
摘要:E - Hit and Away Problem Statement You are given a simple connected undirected graph $G$ with $N$ vertices and $M$ edges.The vertices and edges of $G$ 阅读全文
posted @ 2025-10-29 10:35 onlyblues 阅读(21) 评论(0) 推荐(0)
摘要:F - Not Adjacent Problem Statement You are given a length-$N$ integer sequence $A=(A _ 1,A _ 2,\ldots,A _ N)$. There are $2 ^ N$ (not necessarily cont 阅读全文
posted @ 2025-10-18 23:30 onlyblues 阅读(29) 评论(0) 推荐(0)
摘要:F - Clearance Problem Statement AtCoder Inc.'s online shop currently handles $N$ products, and the stock of product $i$ is $A_i$ units remaining. Proc 阅读全文
posted @ 2025-10-05 23:15 onlyblues 阅读(49) 评论(0) 推荐(1)
摘要:G - Specified Range Sums Problem Statement You are given an integer $N$ and length-$M$ integer sequences $L=(L_1,L_2,\dots,L_M)$, $R=(R_1,R_2,\dots,R_ 阅读全文
posted @ 2025-05-05 12:19 onlyblues 阅读(86) 评论(0) 推荐(0)
摘要:F - Path to Integer Problem Statement There is an $N\times N$ grid. Let cell $(i,j)$ denote the cell in the $i$-th row from the top and $j$-th column 阅读全文
posted @ 2025-05-03 16:46 onlyblues 阅读(32) 评论(0) 推荐(0)
摘要:F - Diversity Problem Statement There are $N$ products for sale in a store. The $i$-th product has a price of $P_i$ yen, a utility value of $U_i$, and 阅读全文
posted @ 2024-12-13 16:30 onlyblues 阅读(41) 评论(0) 推荐(0)
摘要:F - Takahashi in Narrow Road Problem Statement There is a road extending east and west, and $N$ persons are on the road. The road extends infinitely l 阅读全文
posted @ 2024-09-24 16:19 onlyblues 阅读(107) 评论(0) 推荐(0)
摘要:E - Permute K times Problem Statement You are given a sequence $X$ of length $N$ where each element is between $1$ and $N$, inclusive, and a sequence 阅读全文
posted @ 2024-08-18 17:10 onlyblues 阅读(109) 评论(0) 推荐(1)
摘要:G - AtCoder Office Problem Statement $N$ people work at the AtCoder office. The office keeps records of entries and exits, and there have been $M$ ent 阅读全文
posted @ 2024-08-10 17:46 onlyblues 阅读(76) 评论(0) 推荐(0)
摘要:G - AtCoder Tour Problem Statement AtCoder Land is represented by a grid with $H$ rows and $W$ columns. Let $(i, j)$ denote the cell at the $i$-th row 阅读全文
posted @ 2024-06-18 21:53 onlyblues 阅读(52) 评论(0) 推荐(0)
摘要:F - Two Sequence Queries Problem Statement You are given sequences of length $N$, $A=(A_1,A_2,\ldots,A_N)$ and $B=(B_1,B_2,\ldots,B_N)$.You are also g 阅读全文
posted @ 2024-06-09 18:05 onlyblues 阅读(136) 评论(0) 推荐(1)
摘要:F - MST Query Problem Statement You are given a weighted undirected connected graph $G$ with $N$ vertices and $N-1$ edges, where vertices are numbered 阅读全文
posted @ 2024-05-27 21:21 onlyblues 阅读(95) 评论(0) 推荐(0)
摘要:G - Mediator Problem Statement Beware the special input format and the smaller memory limit than usual. There is an undirected graph with vertices $1, 阅读全文
posted @ 2024-05-06 21:04 onlyblues 阅读(27) 评论(0) 推荐(0)
摘要:F - Subsequence LCM Problem Statement You are given a sequence of positive integers $A=(A_1,A_2,\dots,A_N)$ of length $N$ and a positive integer $M$. 阅读全文
posted @ 2024-04-19 14:59 onlyblues 阅读(134) 评论(0) 推荐(0)
摘要:F - Oddly Similar Problem Statement There are $N$ sequences of length $M$, denoted as $A_1, A_2, \ldots, A_N$. The $i$-th sequence is represented by $ 阅读全文
posted @ 2024-04-08 15:31 onlyblues 阅读(89) 评论(0) 推荐(0)
摘要:F - Earn to Advance Problem Statement There is a grid with $N$ rows and $N$ columns. Let $(i,j)$ denote the square at the $i$-th row from the top and 阅读全文
posted @ 2024-03-10 16:47 onlyblues 阅读(90) 评论(0) 推荐(1)
摘要:G - Compress Strings Problem Statement You are given $N$ strings $S_1, S_2, \ldots, S_N$. Find the minimum length of a string that contains all these 阅读全文
posted @ 2024-03-05 10:34 onlyblues 阅读(74) 评论(0) 推荐(0)

Web Analytics