随笔分类 - C/C++
有关C/C++的文章
摘要:Description Before the game starts, \(n\) coins are placed on a ring clockwise, and the \(i\) coin has a face value of \(w_i\). At each step of the ga
阅读全文
摘要:Description The \(n\) people line up in a line from left to right, and everyone faces either to the left or to the right. The relationship between the
阅读全文
摘要:Description In mathematics, \(\sqrt{x}\) represents the arithmetic square root of \(x\). If \(\sqrt{x} = y\), then \(y \ge 0\) and \(y^2 = x\). Given
阅读全文
摘要:Description \(\text{Smart}\) has $1$ magic rings and \(n\) magic beads. Some magic beads have a "mysterious connection". Now you need to place these \
阅读全文
摘要:Description Give you a string \(S\) with a length of \(n\) and only lowercase letters (subscripts start from $1$ to \(n\)), perform the following two
阅读全文
摘要:Description There are two integer arrays \(A\) and \(B\) of length \(n\). The value of the array \(A\) will only be $1, 0$ or \(-1\). You can perform
阅读全文
摘要:Description \(\text{Smart}\) participated in the \(n\) \(\operatorname{OnlineJudge}\) tour. His ranking position in the first competition is \(\operat
阅读全文
摘要:Description Given a string \(s\) with a length of \(n\) and a string \(c\) with a length of \(m\), the defined level \(\operatorname{level(s,c)}\) rep
阅读全文
摘要:Description Smart likes to use arrays. Today, he needs your help to complete a difficult task. If for each non-empty sub-array of the array \(A\) (a s
阅读全文
摘要:Description Given a tree of \(n\) nodes, the node number is $1 \sim n$ (the root node number is $1$). For each leaf node, output the path from the roo
阅读全文
摘要:Description A terrible new disease, COVID-19, has begun to spread all over the world. People try to take as many precautions as possible to protect th
阅读全文
摘要:Description XX years ago, there was an old man named Yu Gong who was almost 90 years old. There is \(N\) li shan Road from his home to the city, which
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号