题解列表

筛选

三个数字排序

摘要:解题思路:利用冒泡排序交换的思想,但是只有三个数,没必要用for循环。直接两两比较,三个if即可。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,t;……

成绩评定-switch用法

摘要:解题思路:主要是switch用法,仔细看看这道题!!!注意事项:参考代码:#include<stdio.h>int main(){ int score; char grade; scanf("%d",……

1600-s01串——JAVA超简单题解

摘要:解题思路:这道题比较简单,两个循环,一个循环是输入n的次数,一个循环进行转化。在转化的时候,可以使用str.charAt(i)对字符串中的每一个字符进行判断。参考代码:import java.util……

C++版简单4位数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n, x; int m = 0; cin >> n; fo……

没学过C++的都可以看懂

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main() { int n; cin >> n; ……

巧用break怒干最小

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int a, b, c; cin >> a >> b >> c; ……

c++ 40多行简单版

摘要:解题思路:创建链表删除所要求数据。注意事项:此为头插法,最后用数组来重新输出参考代码:#include<iostream>using namespace std;struct Data{    int……

三个数找最大值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; int max; scanf("%d%d%d",&a,&b,&c); max=a; if(……