题解列表

筛选

1764: 循环入门练习1

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int sum=0;     for……

1765: 循环入门练习2

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int sum=0;     for……

1766: 循环入门练习3

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int sum=0;     int……

1767: 循环入门练习4

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int sum=0;     int……

1768: 循环入门练习5

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() {     int n;     cin>>n;……

任意正整型皆可处理,纯整型操作

摘要:解题思路:        输入数字部分->判断长度部分->分割数字部分->长度输出->正序输出->反序输出注意事项:        输入数是整型        没有写负整形长度判断部分    &

甲流病人初筛(c++)

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <vector>using namespace std;struct Patient {    string na……

1128: C语言训练-排序问题<1>

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[10];int main(){    for(int i=……

自定义函数求一元二次方程(switch语句)

摘要:解题思路:根据一元二次方程求根公式的三种情况,用switch语句来判断注意事项:当求根公式<0时,i^2=-1,若为根号下的负数,可写为根号下该数的整数*i参考代码:#include<stdio.h>……