摘要:
1 差分模板 //一维差分 void insert(int l,int r,int x) { s[l]+=x; s[r+1]-=x; } //初始化 for(int i=1;i<=n;i++) insert(i,i,a[i]); //二维差分 void insert(int x1,int y1,in 阅读全文
posted @ 2024-08-14 09:17
Hoshino1
阅读(40)
评论(0)
推荐(0)
摘要:
1 E - Opening Ceremony https://vjudge.net/contest/647025#problem/E 当时想的太复杂没想到消掉最下面一层最优,因为相对层数不变。 #include<stdio.h> #include<algorithm> using namespace 阅读全文
posted @ 2024-08-14 09:13
Hoshino1
阅读(14)
评论(0)
推荐(0)
摘要:
1 VJ练习 1)钟表匹配 https://vjudge.net/contest/647025#problem/H 阅读全文
posted @ 2024-08-14 08:52
Hoshino1
阅读(13)
评论(0)
推荐(0)
浙公网安备 33010602011771号