题解列表

筛选

自定义函数之字符串连接

摘要:解题思路:定义三个数组,两个数组存放输入的数组,最后一个数组存放最终的数组注意事项:利用string函数库中strlen函数计算出个数组中的元素个数参考代码:# include <stdio.h># ……

直接蛇形输入

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

1684: 数据结构-n阶Hanoi塔问题

摘要:解题思路:汉诺塔问题,就将其细分化注意事项:参考代码:#include using namespace std; int fun(int n, char x, char y, char z, in……

迭代法解决

摘要:# MarkDown编辑器基本使用说明 代码如下: ``` #include using namespace std; int main() { int N = 0; c……

敲简单C语言代码!!!

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

敲简单C语言代码!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){   int i,j,n,r,p,q,k,w=0;   char a[100][100];   while(~sc……

汪汪与打针(C++简单逻辑清晰)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int a,int b)          //返回次数 {     ……

数组来做,优化了算法的

摘要:解题思路:注意事项:参考代码:#include#includeint main(){ int i,j,N,a[1000],b[1000],x,sum; scanf("%d",&N); for(i=6;……