题目描述 Noah suggests the following card game: You are given a deck of cards, each wi ...
题目描述 We have a knapsack of integral capacity and some objects of assorted integral sizes. We attempt tofill the knapsack up, but unfortunately, we are really bad at it, so we end up wasting a lot of ...
2021-04-11 20:10 0 268 推荐指数:
题目描述 Noah suggests the following card game: You are given a deck of cards, each wi ...
比较模板的题。 题目 给定一个字符串 \(S\),\(n\) 个字符串 \(T_1,T_2,\dots,T_n\),每个串长度都是 \(m\),一个长度为 \(k\) 的有理数序列 \(p_1,p_ ...
A - Accelerator 设加速器序列为 \(a_1, a_2, \cdots, a_n\),那么考虑把题目里的式子展开:\(a_n+a_na_{n-1}+a_na_{n-1}a_{n-2}+ ...
题目链接:https://codeforces.com/gym/102028/problem/C Lewis likes playing chess. Now he has n rooks on the chessboard with $n$ rows and $n$ columns. All ...
题意:有\(n\)个龙珠在坐标轴上,你每次可以询问一个坐标,返回给你距离你坐标最近的龙珠的距离的平方,当这个距离等于\(0\)时,说明找到一颗龙珠. 题解:这题主要有两个点: 1. ...
A. LaIS (CF contest 1468 A) 题目大意 给定数组\(a_{i}\),求最长几乎上升子数组长度。 一个有\(k\)个数的数组\(b_{i}\)如果满足 \[\min(b_{1}, b_{2}) \leq \min(b_{2}, b_{3}) \leq \min ...
目录 Contest Info Solutions A. Berstagram C. Trip to Saint Petersburg E. The Coronation F. Data Center G. ...
目录 Contest Info Solutions A. Copying Homework C. Even Path E. Songwriter G. Performance Review H. Twin ...