随笔分类 - 题解
题解
摘要:Description Jack and John inherited an inheritance, which includes \(n\) assets (including real estate, deposits, stocks, etc.), and the value of each
阅读全文
摘要:Description There is an unrooted tree with \(n\) nodes, each node is numbered $1 \sim n$. Now it is required to delete one of the nodes so that the nu
阅读全文
摘要:Description Betty is working on a large-scale data statistics problem. She has obtained \(n\) positive integers \(a_i\). Now she wants to select \(n_1
阅读全文
摘要:Description We call the number consisting of 0 and 1 in the decimal number "quasi-binary number", input a positive integer \(n\), and decompose it int
阅读全文
摘要:Description The children are playing a matching game. There are \(n\) boys and \(m\) girls, numbered $1 \sim n$ and $1 \sim m$ respectively. If the su
阅读全文
摘要:Description Given a square and several points, find the number of points in the square (including points on the sides of the square). Here the four si
阅读全文
摘要:Description For two different strings, we have a set of operation methods to make them the same,the specific method is: Modify a character (such as re
阅读全文
摘要:Description The size of a known matrix is defined as the sum of all elements in the matrix. Given a matrix, your task is to find the largest Non-empty
阅读全文
摘要:Description Due to its great contribution to the maintenance of world peace, Dzx was given an unlimited amount of candy free coupons to the candy comp
阅读全文
摘要:Description On this day, the little monkey went looking for food. He came to a rectangular peach garden with grid-like roads (as shown in the picture
阅读全文
摘要:迷宫 (maze) 题目背景 相似题目:洛谷P1605 (题面相似) 题目描述 给定一个 \(N \times M\) 方格的迷宫,迷宫里有 \(T\) 处障碍,障碍处不可通过。给定起点坐标和终点坐标,问每个方格最多经过$1$次。在迷宫中移动有上下左右四种方式。保证起点上没有障碍。问从起点到终点的最
阅读全文
摘要:P1965 转圈游戏 题目描述 n 个小伙伴(编号从 0 到 n-1)围坐一圈玩游戏。按照顺时针方向给 n 个位置编号,从0 到 n-1。最初,第 0 号小伙伴在第 0 号位置,第 1 号小伙伴在第 1 号位置,……,依此类推。游戏规则如下:每一轮第 0 号位置上的小伙伴顺时针走到第 m 号位置,第
阅读全文
摘要:校门内的树 题目描述 $FZYZ$城门的左侧有一排 \(n\) 棵树木。它们按照距离的远近排列,第 1 棵树的高度为$a_1$米,第 2 棵树木的高度为 \(a_2\) 米,第 3 棵树木的高度为 $a _3$米,……,第 \(n\) 棵树木的高度为 $a_n$米。 为了给同学们以积极向上的感觉,一
阅读全文
摘要:本次免费为大家提供【LGR-070】洛谷 3 月月赛的官方题解,点个赞再走呗! 代码就不上了,大家可以到别的博客上去找找!希望这篇博客能对你有所帮助!
阅读全文
摘要:P1034 矩形覆盖 题目描述 在平面上有 \(n\) 个点(\(n \leq 50\)),每个点用一对整数坐标表示。例如:当 \(n=4\) 时,4个点的坐标分另为:\(p_1(1,1)\),\(p_2(2,2)\),\(p_3(3,6)\),\(p_4(0,7)\),见图一。 这些点可以用 \(
阅读全文

浙公网安备 33010602011771号