自定义函数求一元二次方程(switch语句) 摘要:解题思路:根据一元二次方程求根公式的三种情况,用switch语句来判断注意事项:当求根公式<0时,i^2=-1,若为根号下的负数,可写为根号下该数的整数*i参考代码:#include<stdio.h>…… 题解列表 2023年09月23日 0 点赞 0 评论 675 浏览 评分:0.0
2117: 信息学奥赛一本通T1310-车厢重组 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100000];int main(){ int n;…… 题解列表 2023年09月23日 0 点赞 0 评论 719 浏览 评分: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 评论 330 浏览 评分:0.0
甲流病人初筛(c++) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;struct Patient { string na…… 题解列表 2023年09月23日 2 点赞 0 评论 530 浏览 评分:10.0
任意正整型皆可处理,纯整型操作 摘要:解题思路: 输入数字部分->判断长度部分->分割数字部分->长度输出->正序输出->反序输出注意事项: 输入数是整型 没有写负整形长度判断部分 & 题解列表 2023年09月23日 0 点赞 0 评论 334 浏览 评分:0.0
1769: 循环入门练习6 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n;…… 题解列表 2023年09月23日 0 点赞 0 评论 319 浏览 评分:6.0
1768: 循环入门练习5 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n;…… 题解列表 2023年09月23日 0 点赞 0 评论 396 浏览 评分:0.0
1767: 循环入门练习4 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int sum=0; int…… 题解列表 2023年09月23日 0 点赞 0 评论 304 浏览 评分:0.0
1766: 循环入门练习3 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int sum=0; int…… 题解列表 2023年09月23日 0 点赞 0 评论 392 浏览 评分:0.0
C语言循环判断解法(简单易懂有注释) 摘要:解题思路:建立bool型数组,通过一般的穷举思路不断判断当下情况,至只剩下最后一个数,取下标注意事项:函数中i作为计数器被反复使用,可以以i=0为界讨论各步骤参考代码:#include<stdio.h…… 题解列表 2023年09月23日 0 点赞 0 评论 483 浏览 评分:9.9