别来无恙
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp //2025.1.26 ljl luogu P4387 【深基15.习9】验证栈序列 #include using namespace std; int t, a; int c[100005], d[100005]; stack s; int main() { cin >> t; while (t--)…
****灵栖深搜算法记录**** ``` 深搜:新状态处理优先级最高 新状态处理完后回溯处理 通常使用函数实现处理状态的流程 本质上是借助函数调用来记录旧状态的处理进度 ``` --- [例题:P1657选书](https://www.luogu.com.cn/problem/P1657) --- ```cpp //2…
[题目传送门](https://www.luogu.com.cn/problem/P2866) ```cpp //2024.12.5 ljl luogu P2866 [USACO06NOV] Bad Hair Day S //单调栈 #include using namespace std; const int N =…
在讨论《关于2024 NOIP 云南初中生线》回复:
@[five_rice_water](luogu://user/901471)不要emo了,努力过就好,2025加油!!
在讨论《询问奖项认证》回复:
@[SSqwq_](luogu://user/639085)谢谢大佬,蓝勾啊%%%(QAQ)
``` //2024.10.31 ljl luogu P11229 [CSP-J 2024] 小木棍(民间数据) #include using namespace std; int t, n, sum; int main() { cin >> t; while (t--) { cin >> n; sum = n / 7…
``` //1 //2024.10.24 ljl luogu P1466 [USACO2.2] 集合 Subset Sums //高斯求和公式:n(n+1)/2 //特判无解的情况(集合内所有数字的和为奇数) //开long long //结果要/2 //所以方案总数就应该是选的方案和不选的方案之和 #include…
``` //2024.7.29 ljl luogu P1464 Function #include using namespace std; typedef long long ll; ll a, b, c, jiyi[30][30][30] = {0}; ll w(ll a, ll b, ll c) { if (a…
``` //2024.7.22 ljl luogu P1002 [NOIP2002 普及组] 过河卒 #include using namespace std; int n, m, mx, my; int fx[9] = {0, 2, -1, 1, 2, 2, 1, -1, 2}; int fy[9] = {0, 1,…