07 2022 档案

摘要:大致题意: 给定一个n, 对于区间[1, n]有如下操作: 选定l, r, 把[l, r]区间全部修改为数值c 最后输出[1, n]的区间和 解题思路: 考察线段树的区间修改 + 根结点查询. #include<cstdio> #include<cstring> using namespace st 阅读全文 »
posted @ 2022-07-11 17:59 皮卡Q 阅读(29) 评论(0) 推荐(0) 编辑
摘要:#include<cstdio> #include<string> #include<algorithm> #include<iostream> using namespace std; long long ans,n; bool f=true; void dfs(long long num){ i 阅读全文 »
posted @ 2022-07-11 13:46 皮卡Q 阅读(20) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示