Loading

摘要: 数颜色 带修莫队 模板题 看到别人题解,发现有个小技巧,时间纬度在更改的时候直接 swap 当前值和要修改的值,下次回来的时候 swap 回去是一样的,这样就可以不用多记录状态了 https://fangkaipeng.com/?p=1504 我还发现非常 BZOJ 的数据和 AcWing 的数据相 阅读全文
posted @ 2022-05-24 21:46 dgsvygd 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 传送门 A - ASCII code 输出 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string> #include <queue> #include <functi 阅读全文
posted @ 2022-05-24 10:10 dgsvygd 阅读(40) 评论(0) 推荐(0) 编辑
摘要: Required Length bfs 直接搜就好了 一开始还以为会爆 unsigned long long,在接近边界的时候还特判了一下 结果发现是小学数学没学好 #include <iostream> #include <cstdio> #include <algorithm> #include 阅读全文
posted @ 2022-05-24 09:55 dgsvygd 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 传送门 A. Game with Cards 看最大的在谁那,谁就赢 如果最大的都一样,则先手赢 #include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <string> #inclu 阅读全文
posted @ 2022-05-24 09:52 dgsvygd 阅读(81) 评论(0) 推荐(0) 编辑