会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Vivian-0918
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
30
下一页
2024年5月23日
P0689. 宝石串
摘要: #include<bits/stdc++.h> using namespace std; int b[2000010], ans, k; //k表示的是当前前缀的差值(也就是红宝石和绿宝石之间个数的差距) //bi表示的是绿宝石与红宝石之间差值为i时的最前的下标 //因为这个差值可能是负数所以就加一
阅读全文
posted @ 2024-05-23 18:11 Vijurria
阅读(27)
评论(0)
推荐(0)
2024年4月17日
天梯赛真题补题单(L2-1 ~ L2-4)
摘要: L2-1 点赞狂魔 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL N=200200,M=2020,INF=0x3f3f3f3f; LL n; s
阅读全文
posted @ 2024-04-17 11:55 Vijurria
阅读(29)
评论(0)
推荐(0)
2024年4月14日
天梯赛真题补题单(L1-6 ~ L1-8)
摘要: L1-6 整除光棍(思维题) #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL N=100200,M=2020; const double PI=3
阅读全文
posted @ 2024-04-14 20:18 Vijurria
阅读(30)
评论(0)
推荐(0)
天梯赛真题补题单(L1-1 ~ L1-5)
摘要: L1-1 寻找250 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL N=100200,M=2020; const double PI=3.141
阅读全文
posted @ 2024-04-14 19:24 Vijurria
阅读(22)
评论(0)
推荐(0)
2024年4月8日
Acwing 681. 疏散人群(dfs)(记录根节点下有几个子节点)
摘要: 输入样例: 6 2 1 3 2 4 3 5 2 6 1 输出样例: 4 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL N=100200,M=20
阅读全文
posted @ 2024-04-08 16:13 Vijurria
阅读(16)
评论(0)
推荐(0)
2024年3月30日
Acwing 1318. 取石子游戏(博弈论)
摘要: https://www.acwing.com/problem/content/1320/ 输入样例: 23 3 输出样例: 1 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int,in
阅读全文
posted @ 2024-03-30 16:41 Vijurria
阅读(41)
评论(0)
推荐(0)
Acwing 5475. 聚会 ( BFS )
摘要: https://www.acwing.com/problem/content/5478/ 输入样例1: 5 5 4 3 1 2 4 3 2 1 2 2 3 3 4 4 1 4 5 输出样例1: 2 2 2 2 3 输入样例2: 7 6 3 2 1 2 3 3 2 2 1 1 2 2 3 3 4 2
阅读全文
posted @ 2024-03-30 16:15 Vijurria
阅读(13)
评论(0)
推荐(0)
Acwing 1050. 鸣人的影分身
摘要: https://www.acwing.com/problem/content/1052/ 输入样例: 1 7 3 输出样例: 8 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int,i
阅读全文
posted @ 2024-03-30 15:11 Vijurria
阅读(21)
评论(0)
推荐(0)
2024年3月29日
牛客 [NOIP2001]数的划分
摘要: https://ac.nowcoder.com/acm/problem/16695 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int,int> PII; const LL MAXN=
阅读全文
posted @ 2024-03-29 15:44 Vijurria
阅读(19)
评论(0)
推荐(0)
Acwing 129. 火车进栈
摘要: https://www.acwing.com/problem/content/description/131/ 输入样例: 3 输出样例: 123 132 213 231 321 #include<bits/stdc++.h> using namespace std; typedef long lo
阅读全文
posted @ 2024-03-29 15:11 Vijurria
阅读(18)
评论(0)
推荐(0)
1
2
3
4
5
···
30
下一页
公告