明明的随机数(c语言桶解) 摘要:解题思路:用桶来排序,每个数字直接设置为一比qsort快桶号设置为1-1000注意事项:参考代码:int main(){ int N; scanf("%d",&N); in…… 题解列表 2025年11月28日 0 点赞 0 评论 39 浏览 评分:0.0
set去重且排序(sf12b) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ set<int>myset; //s…… 题解列表 2025年06月02日 0 点赞 0 评论 251 浏览 评分:0.0
求解阿明的随机数 摘要:解题思路:纯用循环注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%…… 题解列表 2025年05月24日 2 点赞 0 评论 306 浏览 评分:10.0
明明的随机数(set容器自动排序和去重) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年05月01日 1 点赞 0 评论 285 浏览 评分:10.0
明明的随机数(使用unordered_set和sort) 摘要:> unordered_set可以去重,但是不能用cin输入,要用**insert**> sort排序,默认升序。***unordered_set不能用sort***,先复制到vector中…… 题解列表 2025年02月21日 2 点赞 0 评论 431 浏览 评分:0.0
排序+去重 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intnumber[100]; intn,…… 题解列表 2025年01月06日 1 点赞 0 评论 412 浏览 评分:0.0
1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;set<int>st;int main(){ int n,m; cin…… 题解列表 2024年11月08日 0 点赞 0 评论 444 浏览 评分:10.0
明明的随机数 摘要:```cpp include include include include using namespace std; const int N = 110; int n; in…… 题解列表 2024年11月03日 1 点赞 0 评论 402 浏览 评分:9.9
明明的随机数 摘要:解题思路:注意事项:参考代码:int main(){ //输入 int n = 0; scanf("%d", &n); //将每一个数字作为下标,将其对应的数组空间内置成数字的值 int input …… 题解列表 2024年08月22日 1 点赞 0 评论 336 浏览 评分:0.0
明明的随机数C++,使用vector函数 摘要:解题思路:利用vector容器设置数组先去重在排序,使用选择排序参考代码:#include<iostream>#include<vector>using namespace std;//选择排序voi…… 题解列表 2024年08月12日 0 点赞 0 评论 321 浏览 评分:0.0