摘要: 不会 F 的场。 A 答案是最左的 \(1\) 和最右的 \(1\) 之间的 \(0\) 的个数。 Code #include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ios::sync_with_ 阅读全文
posted @ 2024-02-24 14:25 SFlyer 阅读(78) 评论(0) 推荐(0) 编辑
摘要: ARC 172 E 先写一个暴力,看看有啥规律。 Code #include <bits/stdc++.h> using namespace std; using ll = long long; const ll mod = 1e9; ll pw(ll x,ll y){ ll res=1; whil 阅读全文
posted @ 2024-02-22 16:25 SFlyer 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 叮!你的橙名体验卡已到期~ A sort 以后,是奇数项之和。 Code #include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin. 阅读全文
posted @ 2024-02-18 10:25 SFlyer 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 不会 F 的场。 A Code #include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int t; cin>>t 阅读全文
posted @ 2024-02-11 20:30 SFlyer 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 访问量为啥这么高,不懂了。 1 月末到 2 月有点喜欢睡觉了。好多东西都没学,好多东西都不会。 这是我认为比较好的资源: in WC ACAM 还没看/ng/lh PAM at home (all oiwiki/kx) GF treap 左偏树 虚树 圆方树 hibernating SAM (感觉很 阅读全文
posted @ 2024-02-11 11:58 SFlyer 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 因为我昨天玩游戏被骗,所以特此记录。(在飞机上算的,笑) 概率的游戏 假设现在有红、黄、蓝 \(3\) 种球各 \(8\) 个,让你摸出 \(12\) 个球(完全随机)。一共玩恰好 \(5\) 局游戏。假设有这个表: 你抽到的组合 你获得的钱数 543 -30 444 5 642 5 552 15 阅读全文
posted @ 2024-02-06 21:45 SFlyer 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 我是沙波。嘿! 开局好的号打烂 A 好难。 Code #include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); st 阅读全文
posted @ 2024-02-03 21:54 SFlyer 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1.29 大概 3:00 到了宿舍。宿舍 2*7。同宿舍的有 yxcat, shn(nanatoday) 和 syx。哇!有去年最佳女!她比我来的早,但是不知道去哪里了。 因为拿了太多包太累了就休息了一会。联系 shn 没有消息。懒得收拾东西。 过了一会 yxcat 来了。yxcat 姐姐好漂亮!/ 阅读全文
posted @ 2024-02-02 09:02 SFlyer 阅读(321) 评论(0) 推荐(0) 编辑
摘要: \(1:10\) AK。 T1 注意到路线是从小的到大的点,因此可以从后往前确定。具体地说,确定一个点 \(i\),从前往后枚举 \(j>i\),如果现在到 \(j\) 的路线个数不符合奇偶性,就连一条边。 很容易证明是正确的。\(\mathcal{O}(N^3)\)。 Code #include 阅读全文
posted @ 2024-01-31 11:15 SFlyer 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 较简单的场。submissions. 很久以后复健 abc 第一场。G 题开太慢没 \(2400\) 差评。 UPD: 海波了一点。改了。 A 直接加。 B 如果 \(s=\texttt{sort}(s)\),则是 Yes,否则是 No。 C There is exactly one way to 阅读全文
posted @ 2024-01-21 12:42 SFlyer 阅读(15) 评论(0) 推荐(0) 编辑