迭代法求平方根,新手C语言代码 摘要:解题思路:Xn与X(n-1)的差值来做迭代法注意事项:第一次插值为正,后面为负。使用double的fabs()来求得绝对值,需#include<math.h>的头文件。参考代码:#include<st…… 题解列表 2021年08月28日 0 点赞 0 评论 203 浏览 评分:8.0
蓝桥杯算法提高VIP-聪明的美食家(Java) 摘要: import java.util.Scanner; public class test { public static void main(String…… 题解列表 2021年08月28日 0 点赞 0 评论 225 浏览 评分:0.0
c语言之买不到的数目(20行代码)!!! 摘要:解题思路:运用枚举,从大往小找,当找到一个无法组合的数输出。注意事项:该代码可能效率一般,但新手容易理解,适合大众学习和初学人。参考代码:#include<stdio.h>int main(){ …… 题解列表 2021年08月28日 0 点赞 1 评论 842 浏览 评分:8.0
zhongshusssssssssss1 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main(){ int n; scanf("%d", &n); int num[100]; for (int i = 0; i…… 题解列表 2021年08月28日 0 点赞 0 评论 174 浏览 评分:0.0
快速排序——————排序的训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define _CRT_SECURE_NO_DEPRECATE#pragma warning(disable:4996)#define…… 题解列表 2021年08月27日 0 点赞 0 评论 600 浏览 评分:9.9
Jam的计数法(全排列解法) 摘要:参考代码:#include <cstdio> #include <cstdlib> using namespace std; const char M[] = " abcdefghijklmno…… 题解列表 2021年08月27日 0 点赞 0 评论 422 浏览 评分:9.9
蓝桥杯算法训练VIP-JAM计数法(全排列解法) 摘要:参考代码:#include <cstdio> #include <cstdlib> using namespace std; const char M[] = " abcdefghijklmno…… 题解列表 2021年08月27日 0 点赞 1 评论 328 浏览 评分:10.0
线段树做法 摘要:import java.io.*;public class Main{ static Node tr[]; public static void main(String[]args) th…… 题解列表 2021年08月27日 0 点赞 0 评论 296 浏览 评分:2.0
1020: [编程入门]猴子吃桃的问题 C语言 反推出答案 摘要:解题思路:认真读题之后可以发现,每次吃桃子的数量都是前一次的一半再减一,找到这个规律之后,也可反推,最后一天只剩下一个桃子了,那么我们就可以用最后的一去先加一,在乘以2,这样不断循环得到答案注意事项:…… 题解列表 2021年08月27日 0 点赞 0 评论 718 浏览 评分:9.9