题解列表

筛选

母牛的故事 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[100],b[100];int main(){ a[1]=1; a[2]=2; a[3]=3; int i=0,j,num;……

数列排序 (C++代码)

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

【魔板】 (C++代码)

摘要:解题思路:对于这个问题来说,一共有三种操作,最终输出的结果又是最小的步骤  所以采用bfs进行暴力破解题目是多组数据进行输入,所以用while循环进行输入,接下来基本上就是套用bfs暴力破解的魔板直接……

采药 (C语言代码)

摘要:解题思路:01背包+动态规划  思想可以网上找注意事项:参考代码:#include <stdio.h>int max(int a,int b);int main(){ int T,M,i,j; int……