题解列表

筛选

求最大值sdgafsdgasd

摘要:解题思路:注意事项:参考代码:#include "stdio.h"int MAX(int arr[], int L, int R) { if (L == R)  { int s = arr[L]; ……

定义函数,来得最大值

摘要:解题思路:先定义一个MAX函数  两数互比后得到的最大数与第三个数比较注意事项:(1) 本程序包括两个函数。其中,主函数 main 仍然是整个程序执行的起点,函数 max(2) 主函数 main 调用……

《最小公倍数》题解

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int gcd(int a,int b);    void swa……

《整除的尾数》题解C

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int a,b;    while(scanf("%d%d",&a……

《素数回文》题解C

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include<math.h>int main(){    int a,b;    scanf……

编写题解 1134: C语言训练-求PI*

摘要:解题思路:利用循环,当某一项小于10的-6次方是停止注意事项:唯一注意一点就是,小于10的-4次方的那一项不用算进来,不然得出来的是3.151495参考代码:import java.util.Scan……

采用数组反序计算大数

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>#include <vector>using namespace std;vector<int> ……