C++ 使用set容器完成去重和排序: 明明的随机数 摘要:# C++ set容器 头文件 ```c++ #include ``` ## AC代码 ```c++ #include #include using namespace std…… 题解列表 2023年06月05日 0 点赞 0 评论 224 浏览 评分:0.0
C++ string类: 去掉空格 摘要:# 输出不带空格即可 ```c++ #include #include using namespace std; int main() { string s; wh…… 题解列表 2023年06月05日 0 点赞 0 评论 203 浏览 评分:0.0
C++ string类:字符串问题 摘要:# C++ string类 ```c++ #include using namespace std; int main() { string s; getline(c…… 题解列表 2023年06月05日 0 点赞 0 评论 537 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long int min = 1000000, max = 0; scanf("%d", &n);…… 题解列表 2023年06月05日 1 点赞 0 评论 351 浏览 评分:0.0
A+B for Input-Output Practice (III)C语言 摘要:#include<stdio.h> int main() { int a, b; while (scanf("%d%d", &a, &b)!=EOF) { if (a == 0…… 题解列表 2023年06月05日 0 点赞 0 评论 156 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1001]; gets(str); st…… 题解列表 2023年06月05日 0 点赞 0 评论 292 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void CompactIntegers(int a[],int k,int n){ int i; for (i = k; …… 题解列表 2023年06月05日 0 点赞 0 评论 211 浏览 评分:0.0
A+B for Input-Output Practice (V) 摘要:#include<stdio.h> int main() { int a; scanf("%d",&a); int sum = 0,c; int b[a][100]; f…… 题解列表 2023年06月05日 0 点赞 0 评论 148 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,s=0; int n; int a[10][10]; cin>>…… 题解列表 2023年06月06日 0 点赞 0 评论 130 浏览 评分:0.0
普通的写法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int N =10010;int a[N];…… 题解列表 2023年06月06日 0 点赞 0 评论 545 浏览 评分:0.0