僕と契約して 蒟蒻になってよ
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《CSP-J\S 第二轮是开卷的吗?》回复:
再也不玩抽象了
在讨论《还有一个小时开始考s组,请问有什么玄学方法吗?》回复:
违规紫珊
```Cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; ch =…
```cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; ch =…
rt ```cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; c…
在讨论《90 pts求调》回复:
Wa on #3
rt ```cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; c…
在讨论《60 pts求调》回复:
发现了 $ a_i $ 和 $ b_i $ 不一定互质,所以不能用费马小定理求逆。
```Cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; ch =…
在讨论《90pts WA 求调》回复:
OK,忘记判断最后一个石头了。加上就AC了。 ```Cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (…
在讨论《90pts WA 求调》回复:
@[wangenbo](luogu://user/1063928) 尝试将二分改成你那种方式,仍然WA
在讨论《90pts WA 求调》回复:
@[wangenbo](luogu://user/1063928) 关注了
rt ```Cpp #include using namespace std; typedef long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; c…
在讨论《80pts 求调》回复:
利用玄学方法AC了,本贴终 ```Cpp #include using namespace std; typedef unsigned long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (…
在讨论《80pts 求调》回复:
将ans改成1e18后变成95pts了 ```Cpp #include using namespace std; typedef unsigned long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9')…
rt ```Cpp #include using namespace std; typedef unsigned long long ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-')…
在讨论《第3点RE,求助》回复:
@[Const_](luogu://user/1038686) thx,已关注
在讨论《36pts求调》回复:
改用memset就AC了,此贴终。 ```cpp #include using namespace std; typedef int ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-')…
rt ```cpp #include using namespace std; typedef int ll; inline ll read() { ll f = 1, x = 0; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; ch = ge…
```Cpp #include using namespace std; typedef long long ll; ll n, f, a[600005], block, t, st[1000], ed[1000], sum[1000], add[1000], pos[1000]; void update(ll lt,…
rt ```Cpp #include using namespace std; typedef long long l; struct segment { l sum, lto, rto, lti, rti, ansi, anso, tag, rev; } tree[400005]; segment merge(seg…
在讨论《线段树50pts求调》回复:
@[wurang](luogu://user/836786)终于过了,感谢感谢!!!
在讨论《线段树50pts求调》回复:
@[wurang](luogu://user/836786) ```Cpp #include using namespace std; typedef long long l; const l inf = 1e9+10; struct segment { l max, cover, add; } tree[400000…
在讨论《线段树50pts求调》回复:
@[wurang](luogu://user/836786)thx.关了
rt ```cpp #include using namespace std; typedef long long l; const l inf = 1e9+10; struct segment { l max, cover, add; } tree[4000005]; void push_up(l p) { tree…
rt,本人正学习线段树,想要巩固关于线段树的知识。 ```Cpp #include using namespace std; typedef long long l; const l MAX_N = 1e6; l q, tree[4*MAX_N], tag[4*MAX_N]; void push_up(l p) { t…
# 洛谷 P12350 题解 ## 一、题意 ### 题目描述 给出长度为 $n$ 的01串,删除 $k$ 个0,求1的最小块数。 ### 输入格式 第一行包含两个整数 $n$ 和 $k$。 第二行一个长度为 $n$ 的01串。 ### 输出格式 一个数表示1连成的最小块数。 ## 二、题解 本题可以使用贪心的思路。…