任意正整型皆可处理,纯整型操作 摘要:解题思路: 输入数字部分->判断长度部分->分割数字部分->长度输出->正序输出->反序输出注意事项: 输入数是整型 没有写负整形长度判断部分 & 题解列表 2023年09月23日 0 点赞 0 评论 144 浏览 评分:0.0
甲流病人初筛(c++) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;struct Patient { string na…… 题解列表 2023年09月23日 0 点赞 0 评论 323 浏览 评分:0.0
1128: C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[10];int main(){ for(int i=…… 题解列表 2023年09月23日 0 点赞 0 评论 181 浏览 评分:0.0
2117: 信息学奥赛一本通T1310-车厢重组 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100000];int main(){ int n;…… 题解列表 2023年09月23日 0 点赞 0 评论 544 浏览 评分:0.0
自定义函数求一元二次方程(switch语句) 摘要:解题思路:根据一元二次方程求根公式的三种情况,用switch语句来判断注意事项:当求根公式<0时,i^2=-1,若为根号下的负数,可写为根号下该数的整数*i参考代码:#include<stdio.h>…… 题解列表 2023年09月23日 0 点赞 0 评论 467 浏览 评分:0.0
1128: C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码://计数排序:以空间换时间#include <bits/stdc++.h>using namespace std;long long tong[100000];int m…… 题解列表 2023年09月23日 0 点赞 0 评论 184 浏览 评分:0.0
素数和素数和素数和素数和素数和素数和素数和素数和 摘要:#include<stdio.h>int funtion(int x);int main(){ int n,m,sum=0,i; scanf("%d %d",&n,&m); for(i=n;i<=m;…… 题解列表 2023年09月23日 0 点赞 0 评论 181 浏览 评分:0.0
c语言结构体练习题输入n个学生成绩输出成绩 摘要:解题思路:注意事项:在看题解的时候我发现许多写的都比较复杂,也有的使用到了指针;我这个代码比较简洁;思路如下:先定义结构体,学号和名字有字母就不能使用int;成绩一般是数字所以使用int;然后在主函数…… 题解列表 2023年09月23日 0 点赞 0 评论 506 浏览 评分:0.0
1720: 数据结构-基数排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long tong[100000];int main(){ int…… 题解列表 2023年09月23日 0 点赞 0 评论 218 浏览 评分:0.0
自守数问题 摘要:参考代码:import java.util.*; public class Main{ public static void main(String[] args) { for(…… 题解列表 2023年09月23日 0 点赞 0 评论 239 浏览 评分:0.0