编写题解 2918: 成绩排序 摘要:解题思路:输入-冒泡法-输出注意事项:字符串的比较不能直接大小写参考代码:#include<stdio.h>#include<string.h>typedef struct student{ c…… 题解列表 2022年10月22日 0 点赞 0 评论 642 浏览 评分:3.0
进制转换(简短) 摘要:解题思路:8进制满8进1,因此要不断取n/8和n%8;n%8取出低位的数,再乘以该位的位数,如10,100,1000,(利用power()实现)b/8是使n不断降位,(利用while实现),至0时退出…… 题解列表 2022年10月22日 0 点赞 0 评论 396 浏览 评分:9.9
最简单解法,一看就会,不会的找我。 摘要:解题思路:无脑解法注意事项:if(n%3!=0||n%2!=0||n%7!=0),要用||,不能用&&参考代码:#include<stdio.h>int main(){ int n; fo…… 题解列表 2022年10月22日 0 点赞 2 评论 676 浏览 评分:9.9
编写题解 2917: 奇数单增序列 C语言 摘要:解题思路:输入-奇数判定-构建新数组-数组排序-条件输出注意事项:当只有一个奇数注意如何输出参考代码:#include<stdio.h>int main(){ int n,i,k,j=0,p=0…… 题解列表 2022年10月22日 0 点赞 0 评论 726 浏览 评分:9.9
计算素数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int m,n,i,j,s;int main(){ cin>>m>>n; fo…… 题解列表 2022年10月22日 0 点赞 0 评论 308 浏览 评分:9.9
使用暴力破解的方法解决此问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,n,i,a=100,b,max; // a存放…… 题解列表 2022年10月22日 0 点赞 0 评论 333 浏览 评分:0.0
平均值计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ float s[10],c=0,t; int i; …… 题解列表 2022年10月22日 0 点赞 0 评论 2358 浏览 评分:9.9
编写题解 2916: 谁考了第k名 摘要:解题思路:输入*判断*输出注意事项:在修改m和m+1位置的时候要记得修改ID的顺序参考代码:#include<stdio.h> typedef struct student{ //构成结构 …… 题解列表 2022年10月22日 0 点赞 0 评论 1004 浏览 评分:9.9
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#include <string>#include<algorithm>struct st…… 题解列表 2022年10月22日 0 点赞 0 评论 312 浏览 评分:9.9
代码看着较长,但非常易懂 摘要:参考代码:#include <stdio.h> int main(void) { int N; scanf("%d", &N); int i = 0; for (i = 1; i …… 题解列表 2022年10月22日 0 点赞 0 评论 227 浏览 评分:0.0