摘要:
## [D. Plus Minus Permutation](https://codeforces.com/contest/1872/problem/D) 这道题要使$(p_{1 \cdot x} + p_{2 \cdot x} + \ldots + p_{\lfloor \frac{n}{x} \ 阅读全文
posted @ 2023-09-08 12:47
铜锣骚
阅读(32)
评论(0)
推荐(0)
摘要:
## [C. Non-coprime Split](https://codeforces.com/contest/1872/problem/C) 这道题可以先进行分类讨论。 - 当$r #define endl '\n' using namespace std; typedef long long 阅读全文
posted @ 2023-09-08 12:29
铜锣骚
阅读(46)
评论(0)
推荐(0)
摘要:
## [B. The Corridor or There and Back Again](https://codeforces.com/contest/1872/problem/B) 由题意可知,对于每一个***d~i~***和***s~i~***,必须要在进入房间***d~i~***的***s~i 阅读全文
posted @ 2023-09-08 09:31
铜锣骚
阅读(25)
评论(0)
推荐(0)
摘要:
## [A. Two Vessels](https://codeforces.com/contest/1872/problem/A) 简单题。先计算杯子a和杯子b里水的差值,在计算需要用c杯子舀几次水就行 $$Ans=ceil(|a-b|/2c)$$ #### 代码 ```cpp #include 阅读全文
posted @ 2023-09-08 09:16
铜锣骚
阅读(42)
评论(0)
推荐(0)

浙公网安备 33010602011771号