摘要: 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 阅读全文
posted @ 2020-10-14 21:49 Sample_Test 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 21:44 Sample_Test 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 21:19 Sample_Test 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description \(\text{Smart}\) has $1$ magic rings and \(n\) magic beads. Some magic beads have a "mysterious connection". Now you need to place these \ 阅读全文
posted @ 2020-10-14 21:11 Sample_Test 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 21:08 Sample_Test 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 21:04 Sample_Test 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Description \(\text{Smart}\) participated in the \(n\) \(\operatorname{OnlineJudge}\) tour. His ranking position in the first competition is \(\operat 阅读全文
posted @ 2020-10-14 20:57 Sample_Test 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 01:28 Sample_Test 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 01:26 Sample_Test 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 01:20 Sample_Test 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 01:16 Sample_Test 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-10-14 01:09 Sample_Test 阅读(158) 评论(0) 推荐(0) 编辑