整数去重:vector 摘要:```cpp #include using namespace std; int vis[105]={0};//标记输入是否有重复 int main() { int n; cin>>n;…… 题解列表 2023年07月20日 0 点赞 0 评论 461 浏览 评分:9.9
普通的写法 摘要:```cpp #include #include #include using namespace std; const int N=20000; int a[N],b[N]; int …… 题解列表 2023年05月01日 0 点赞 1 评论 358 浏览 评分:9.9
整数去重 思路清晰 摘要:解题思路:先输入数字 然后对数字本身遍历如果相同c=1并退出, 如果不同c=0并把不重复的值赋给b数组 最后输出b数组的元素即可注意事项:参考代码:#include<stdi…… 题解列表 2023年02月16日 0 点赞 0 评论 548 浏览 评分:9.9
2913:【桶】整数去重_C++解法 摘要:解题思路:用bucket数组来标记该数字是否已经输出过。若为0,则可以输出;若不为0,则已经输出过,不用输出注意事项:bucket数组下标表示的是数列中的数字,所以数组长度大于100即可。同时将buc…… 题解列表 2023年01月31日 0 点赞 0 评论 402 浏览 评分:9.9
题解 2913: 整数去重 菜鸟解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n; scanf("%d",&n); int a[n]; for(i=0…… 题解列表 2024年11月22日 1 点赞 0 评论 322 浏览 评分:10.0