巧用sort函数实现从大到小的排序输出!! 摘要:解题思路:用sort函数实现数组的从小到大排序,在逆序输出。使用sort函数需要导入头文件<algorithm>注意事项:参考代码:#include<iostream>using namespace …… 题解列表 2022年12月31日 0 点赞 0 评论 716 浏览 评分:9.9
c++排序问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){ int a[4]={0}; in…… 题解列表 2022年12月31日 0 点赞 0 评论 504 浏览 评分:0.0
1091: A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int func(int x,int y); int main() { int n, j; int sum = 0;…… 题解列表 2022年12月31日 0 点赞 0 评论 541 浏览 评分:0.0
1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int func(int x); int main() { int a,n; int sum = 0; …… 题解列表 2022年12月31日 0 点赞 0 评论 429 浏览 评分:0.0
2981: 二进制分类 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ //将1到1000的十进制转换为二进制 int a[1000]; int i,j; in…… 题解列表 2022年12月31日 0 点赞 0 评论 665 浏览 评分:9.9
2976: 字符串中最长的连续出现的字符 解题思路:先定义一个数组输入字符串然后用for循环来断句然后使用for循环来判断下插下一个字符是否与前一个字符相等如果相等则计数如果不相等则退出重新计数最后来判断输出的技术最多的一项是什么然后又输出这个字母然后再输出它的个数注意事项:先定义一个数组来断句然后用for循环来计数用If语句来判断最大的字母 题解列表 2022年12月31日 0 点赞 0 评论 761 浏览 评分:9.9
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,sum=0; scanf("%d",&n); while(~scanf("%d",&m)) { …… 题解列表 2022年12月31日 0 点赞 0 评论 431 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,n; for(i=1;i<10;i++) { for(j=0…… 题解列表 2022年12月31日 0 点赞 0 评论 437 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n,sum=0,m; scanf("%d",&n); m=n; for(int i=…… 题解列表 2022年12月31日 0 点赞 0 评论 521 浏览 评分:0.0
题目 1505: 蓝桥杯算法提高VIP-单词个数统计(简单暴力,一看就懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h>int main(){ char a[100]; int i,b=0; gets(a);// s…… 题解列表 2022年12月31日 0 点赞 0 评论 482 浏览 评分:8.0