[STL训练]{A} + {B}-题解(C++代码) 摘要:可以当做连续的输入,然后用set的迭代器输出。 ``` #include using namespace std; int main(){ set s; int n,m,t…… 题解列表 2019年09月27日 0 点赞 0 评论 835 浏览 评分:9.9
[STL训练]{A} + {B}-题解(Python代码) 摘要:运用python中的set内置类 while True: n,m=map(int,input().split()) a=set(map(int,input().spli…… 题解列表 2020年03月17日 0 点赞 0 评论 455 浏览 评分:9.9
小菜鸡------C语言通俗易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, m; while (~scanf("%d %d", &n, &m)) //输入n,m …… 题解列表 2022年03月23日 0 点赞 1 评论 289 浏览 评分:9.9
只需注意set_union的使用方法 摘要:```cpp #include #include #include using namespace std; void myPrint(int val)//for_each遍历的输出 { …… 题解列表 2022年02月04日 0 点赞 0 评论 262 浏览 评分:9.9
[STL训练]{A} + {B}-题解(C++代码)只做最好的思路! 摘要:这题本质上依然是求交集,在之前总结过,像求交集这类问题,难免会遇到让你来保留两个数组中的不同元素这个卡点,仅用循环是无法通过的,必须要用指针或者迭加器(两者用法一样,迭加器更方便且不易出错!)我自己作…… 题解列表 2020年03月17日 0 点赞 0 评论 586 浏览 评分:9.9
2065: [STL训练]{A} + {B}(set) 摘要:解题思路:set集合自带默认升序和去重功能。参考代码:#include <bits/stdc++.h> #define ll long long using namespace std; …… 题解列表 2022年07月07日 0 点赞 0 评论 176 浏览 评分:9.9
题解 2065: [STL训练]{A} + {B} (C语言)我来写个C版本的吧,代码不如人家吊炸天,但是你能看懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> //…… 题解列表 2021年03月24日 0 点赞 1 评论 287 浏览 评分:8.0
STL& set[STL训练]{A} + {B} 摘要:# 使用STL库的`set`容器 > 自带去重和排序的功能,就不需要调用排序函数了 ```c++ #include #include #include #include usi…… 题解列表 2023年06月23日 0 点赞 0 评论 100 浏览 评分:0.0
[STL训练]{A} + {B},纯循环思路清晰 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a和b,以及数组c、d和e …… 题解列表 2024年11月11日 0 点赞 0 评论 77 浏览 评分:0.0
太难了我不想打代码[STL训练]{A} + {B} 摘要:解题思路:set容器可以排序、去重、所以用它太几把合适了,先这样,在那样,最后那样,然后他妈的发现错了注意事项: 注意进厂时机!!!参考代码:#includeusing namespace s…… 题解列表 2023年06月07日 0 点赞 0 评论 107 浏览 评分:0.0