题解列表

筛选

1137: C语言训练-求函数值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a=10,i,x;void fun1(){    scanf("%d",&x);    if(x==1)    {       ……
优质题解

蛇形矩阵C语言代码

摘要:**分析** **![img](https://gitee.com/whoarewang/picturebed/raw/master/img/202201251600946.jpg)** ……

归并排序 C语言

摘要:解题思路:看视频学的,那个视频真的超级详细,视频地址我放下面了。教学视频:https://www.bilibili.com/video/BV1Pt4y197VZ?from=search&seid=15……

Java 题解简易实现

摘要:import java.util.*; import java.io.*; public class A { public static void main(String[] args) ……

母牛生子数组

摘要:解题思路:定义数组a[4],分别表示为一岁两岁三岁四岁,四岁时可以生小母牛,则a[3]+=a[2],a[2]=a[1],a[1]=a[0],a[0]=a[3];注意事项:参考代码:#include<s……

递归求解算法C++版本

摘要:#include<bits/stdc++.h> using namespace std; int gcd(int m,int n){ int min = m < n ? m : n, ……

冒泡排序优化C++版本

摘要:#include<bits/stdc++.h> using namespace std; void bubblesort(int a[],int n){ bool flag = 1; ……