上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: 嫌弃讲题人的我,准备好好写一篇题解。 [link to problem](https://atcoder.jp/contests/arc157/tasks/arc157_f) 观察数据范围:$1\le N\le 50$。 如果是 $20$,想到 $2^{20}$;如果是 $40$,想到 $2^{40 阅读全文
posted @ 2023-08-16 22:10 SFlyer 阅读(57) 评论(1) 推荐(0)
摘要: ## [abc 212f](https://atcoder.jp/contests/abc212/tasks/abc212_f) 看到 query 题,显然预处理。预处理从一个点跳 $2^k$ 次到哪里。query 时分讨情况。 点击查看代码 ```cpp #include using namesp 阅读全文
posted @ 2023-08-14 16:21 SFlyer 阅读(30) 评论(0) 推荐(0)
摘要: 简单题,但是我赛时没写完,少了一个 $5$ 分钟。 [link](https://atcoder.jp/contests/abc314/tasks/abc314_g) 程序有点丑,就不放 link 了,去掉注释在这。 code ```cpp #include using namespace std; 阅读全文
posted @ 2023-08-13 13:23 SFlyer 阅读(18) 评论(0) 推荐(0)
摘要: 这里,模拟赛的题分 $3$ 类: - $1$,我赛时 AC,但是认为有价值的。 - $2$,我赛后独立 AC,认为有价值的。平常,是**我脑子比赛时或多或少出了问题的**。 - $3$,我赛后看题解 AC,认为有价值的。 ## [loj 3513](https://loj.ac/p/3513) 类别 阅读全文
posted @ 2023-08-08 15:50 SFlyer 阅读(54) 评论(0) 推荐(0)
摘要: [problem](https://atcoder.jp/contests/practice2/tasks/practice2_c) 不用 ACL! ```cpp ll fs(ll n,ll m,ll a,ll b){ ll res=0; if (a>=m){ res+=n*(n+1)/2*(a/m 阅读全文
posted @ 2023-08-07 14:28 SFlyer 阅读(33) 评论(0) 推荐(0)
摘要: 省流:NPC,别看啦! 给定 $N$ 个数 $A_1,\cdots ,A_N$,问可不可以把它们分成两组,使得两组的和相同。 没有数据范围。 有一个很简单的 dp 方法,$dp_{i,x}|=dp_{i-1,x-a_i}$。 看 $dp_{n,\frac{sum}{2}}$ 是否为 $1$。时间复杂 阅读全文
posted @ 2023-08-02 18:00 SFlyer 阅读(341) 评论(1) 推荐(1)
摘要: 从另一个网站上的我的博客里转的。感觉放在一起比较好。时间久远,而且是英文(流泪)。 # [Easy Climb](https://www.luogu.com.cn/problem/UVA12170) ## Step 1 If $x_i,d\le 100$. Then define $dp_{i,j} 阅读全文
posted @ 2023-08-02 11:30 SFlyer 阅读(25) 评论(0) 推荐(0)
摘要: 纪念一次(赛后补完)赛时 ABCDFGH 的比赛。 [submissions](https://atcoder.jp/contests/abc312/submissions?f.User=SFlyer) 过会补。 ## A,B 可以直接暴力打表。B 题也可以 [这样](https://codefor 阅读全文
posted @ 2023-07-30 08:40 SFlyer 阅读(31) 评论(0) 推荐(0)
摘要: 首先,所有的都$\mod k$。$i+1$ 的最优一定从 $i$ 的最优转化而来。也就是这题让我们做出最优的 $extend$。 可以算一下样例。`1 2 3 1 3 2 1` 的答案依次为 `1 2 3 3 4 4 4`。可以得到一个 observation: - observation:当在走下 阅读全文
posted @ 2023-07-25 00:30 SFlyer 阅读(18) 评论(0) 推荐(0)
摘要: 首先,我把英文 Editorial 翻译成人可以看的懂的英文 Editorial。(也许你还是看不懂。) Preface: solving this problem in a time complexity of about $300^3×log⁡_2(300)≈2.2×10^8$ requires 阅读全文
posted @ 2023-07-23 00:24 SFlyer 阅读(28) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 下一页