题解列表

筛选

数组加for循环

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int x, int y){ return x >= y ? x : y;}int main(){ char str1[……

用vector容器写的

摘要:解题思路:原题链接:Hello,world!注意事项:熟悉vector的用法参考代码:#include<iostream>#include<vector>using namespace std;int……

3030:——全排列

摘要: import java.util.Scanner; public class Main { public static void main(String[] ……

&#039;hello world &#039;的输出

摘要:解题思路:用cout语句来实现输出。注意事项:要注意输出内容是否与题目要求一致(如大小写,换行,‘*’个数。)参考代码:#include using namespace std; int main……

棋盘游戏 DFS

摘要:广搜太麻烦了,深搜水了过去参考代码:#include<stdio.h>#include<math.h>#include<string.h>int book[10], x[10], y[10], ex[……

蓝桥杯算法训练VIP-求先序排列 递归

摘要:解题思路:递归,通过中序和后序推出先序。参考代码://后序排列最后一个一定是根节点//从中序排列中找出根,前半段是左子树,后半段右子树 //后序排列中最后一个能找到的子树中有的字母是子树的根(也有可能……

1806一行解(Python)

摘要:解题思路:将sys.stdin的内容转换为列表形式后打印即可注意事项:参考代码:print(input().split()[1])……