1165: 明明的随机数 摘要:```cpp #include using namespace std; int main() { int a,s1[100],s2[100],s=0,x=1,j; cin…… 题解列表 2022年11月13日 0 点赞 0 评论 93 浏览 评分:9.9
小南解题-- 明明的随机数--64ms 摘要:a=int(input())b=set(map(int,input().split()))b=list(b)b.sort()print(len(b))for i in b: print(i,en…… 题解列表 2022年08月26日 0 点赞 0 评论 137 浏览 评分:0.0
求大佬指点---查重与排序 摘要:```c //思路:输入->查重->排序->输出; #include int main() { int M; scanf("%d", &M); int a[200];//可以用动态…… 题解列表 2022年08月25日 0 点赞 0 评论 192 浏览 评分:9.9
用set去重并排序 摘要:解题思路:通过set关联容器,set中每个元素都唯一,且能根据元素的值自动排序。注意事项:参考代码:#include <bits/stdc++.h> //万能头文件 using namespace …… 题解列表 2022年07月30日 0 点赞 0 评论 170 浏览 评分:0.0
先排序再筛选出相同的数,然后再跳过。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int a[1000],b[1000]…… 题解列表 2022年07月23日 0 点赞 2 评论 108 浏览 评分:9.9
#C++1165——明明的随机数(set容器) 摘要:```cpp #include #include #include #include using namespace std; int main() { int m; ci…… 题解列表 2022年07月14日 0 点赞 0 评论 322 浏览 评分:0.0
1165: 明明的随机数(暴力调API 好理解) 摘要:```java import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; public cl…… 题解列表 2022年05月08日 0 点赞 0 评论 180 浏览 评分:9.9
使用STL set容器进行解题 摘要:解题思路:先定义一个整型数组,从键盘赋值,然后再插入到set容器中,set 本身就可以达到去重,而且默认升序注意事项:参考代码: #include<iostream>#include<set>i…… 题解列表 2022年04月29日 0 点赞 0 评论 209 浏览 评分:9.9
1165: 明明的随机数 摘要:解题思路:先用数组装,然后排好序后,装入set,然后输出就好了注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() …… 题解列表 2022年04月03日 0 点赞 0 评论 207 浏览 评分:9.9
明明的随机数(Python代码) 3行完事 附解题思路 摘要:## 解题思路: 首先使用 ***列表推导式*** 来进行把 ***input().split()*** 分段后的列表元素转为 **int类型**, 接着使用 ***set()*** 直接转为…… 题解列表 2022年02月23日 0 点赞 0 评论 560 浏览 评分:9.9