題目描述 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 ...