题解列表
其实就是一个人简单的循环
摘要:#include<bits/stdc++.h>using namespace std;int main(){ int n,a; cin>>n; for(int i=1;;i++) ……
简单1002: [编程入门]三个数最大值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int a,b,c; cin>>a>>b>>c……
编写题解 1089: A+B for Input-Output Practice (V)
摘要:解题思路:定义三个变量来保存数据注意事项:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;int main(){ int n; in……
优质题解
1796: 蛇形填数(dfs)
摘要:解题思路:很久之前就看见这道题了,但是因为感觉模拟起来太复杂所以没有做,今天突然想到dfs寻路可能可以解这道题,就尝试了一下dfs做法。如上图所示,如果从右上角开始的话,优先级一定是先向下搜索,然后再……
超好懂的求一元二次方程
摘要:解题思路:取三个函数来计算三种情况,再一个函数来判断b*b-4*a*b与0的关系进那种情况;注意事项:了解如何计算二元一次方程的根,过程很简单;参考代码:#include<stdio.h>#inclu……
单词个数统计(C语言)
摘要://当前字符为字母且下个字符不是字母时单词数加一
#include
int main()
{
char a[80];
gets(a);
int k=0, len=s……
自定义函数之数字分离(C语言简单数组)
摘要: #include
void aa (int x);
int main() {
int x;
scanf("%……