优质题解 1796: 蛇形填数(dfs) 摘要:解题思路:很久之前就看见这道题了,但是因为感觉模拟起来太复杂所以没有做,今天突然想到dfs寻路可能可以解这道题,就尝试了一下dfs做法。如上图所示,如果从右上角开始的话,优先级一定是先向下搜索,然后再…… 题解列表 2022年07月17日 0 点赞 0 评论 1366 浏览 评分:10.0
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:定义三个变量来保存数据注意事项:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;int main(){ int n; in…… 题解列表 2022年07月17日 0 点赞 0 评论 375 浏览 评分:0.0
简单1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2022年07月17日 0 点赞 0 评论 569 浏览 评分:0.0
学生成绩(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ typedef struct student{ char name[20]…… 题解列表 2022年07月17日 0 点赞 0 评论 429 浏览 评分:9.9
字符串的连接 摘要:```c //题目要求把两个字符串链接,我们可以想到用数组存储,然后加上指针进行位置运算来实现,其实也可以直接用strcopy直接拷贝过去,我们这里就自己来实现字符串的连接 #include #…… 题解列表 2022年07月17日 0 点赞 1 评论 761 浏览 评分:9.9
其实就是一个人简单的循环 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int n,a; cin>>n; for(int i=1;;i++) …… 题解列表 2022年07月17日 0 点赞 0 评论 399 浏览 评分:0.0
可以用下递归 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long f(int n){ if(n==1||n==0) return 1; el…… 题解列表 2022年07月17日 0 点赞 0 评论 460 浏览 评分:7.0
穷举求解。。。。。。。。 摘要:解题思路:无注意事项:无参考代码:a,b,c=0,0,0 for i in range(100,1000): a=int(i/100) b=int(i/10%10) c…… 题解列表 2022年07月17日 0 点赞 0 评论 516 浏览 评分:9.9
自定义函数之整数处理(C语言,简单数组) 摘要: #include void enter(int a[10]); void deal(int a[10]); void out(int a[10]);…… 题解列表 2022年07月17日 0 点赞 0 评论 441 浏览 评分:0.0
自定义函数之数字后移(C语言,简单for循环) 摘要: #include void deal(int n, int m, int a[999]); int main() { int n, …… 题解列表 2022年07月17日 0 点赞 0 评论 387 浏览 评分:0.0