摘要:
A题目过简单,略 B.构造+二进制 以下思路引用自大佬Luckybook,后面是他的原博客地址:https://www.cnblogs.com/luckyblock/p/18214645 这里难以想到的主要是如何找到这样的一段区间并且插入进去合适的-1还有1 点击查看代码 #include <bit 阅读全文
posted @ 2024-05-28 21:05
ruo_feng
阅读(30)
评论(0)
推荐(0)
摘要:
A.map的简单应用 点击查看代码 #include<bits/stdc++.h> using namespace std; int main() { int n=9; map<int,int> s1; for(int i=1;i<=n;i++) { int x; cin>>x; s1[i]=x; 阅读全文
posted @ 2024-05-28 18:56
ruo_feng
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号