编写题解 2065: [STL训练]{A} + {B} 摘要:解题思路:注意事项:参考代码:while True: try: n,m=map(int,input().split()) r=list(map(int,i…… 题解列表 2022年03月15日 0 点赞 0 评论 593 浏览 评分:0.0
[STL训练]{A} + {B}(用STL中的set) #用STL中的set求解```cpp#includeusingnamespacestd;intmain(){sets;inttmp,s1;while(cin>>s1){tmp=s1;cin>>s1;tmp+=s1;for(inti=0;i>s1;s.insert(s1);}for(autox:s)co 题解列表 2021年05月13日 0 点赞 0 评论 641 浏览 评分:0.0
太难了我不想打代码[STL训练]{A} + {B} 摘要:解题思路:set容器可以排序、去重、所以用它太几把合适了,先这样,在那样,最后那样,然后他妈的发现错了注意事项: 注意进厂时机!!!参考代码:#includeusing namespace s…… 题解列表 2023年06月07日 0 点赞 0 评论 422 浏览 评分:0.0
STL& set[STL训练]{A} + {B} 摘要:# 使用STL库的`set`容器 > 自带去重和排序的功能,就不需要调用排序函数了 ```c++ #include #include #include #include usi…… 题解列表 2023年06月23日 0 点赞 0 评论 452 浏览 评分:0.0
set集合的使用(插入与遍历) 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n>>m) { ve…… 题解列表 2024年07月29日 0 点赞 0 评论 496 浏览 评分:0.0
[STL训练]{A} + {B},纯循环思路清晰 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a和b,以及数组c、d和e …… 题解列表 2024年11月11日 0 点赞 0 评论 463 浏览 评分:0.0
[STL训练]{A} + {B} (Java代码) 摘要:解题思路: set不重复序列的有序排列注意事项: 注意对象类型的转换参考代码:import java.util.Arrays; import java.util.HashSet; im…… 题解列表 2021年02月28日 0 点赞 0 评论 992 浏览 评分:0.0