题解 1021: [编程入门]迭代法求平方根 摘要:解题思路: 首先猜测一个值X1=a/2,然后根据迭代公式 X(n+1)=(Xn+a/Xn)/2注意事项:参考代码:public class test1021 {// 用迭代法求 平方根//…… 题解列表 2022年01月20日 0 点赞 1 评论 1164 浏览 评分:9.9
这个为啥不行 摘要:解题思路:输入十六进制,直接输出八进制,这种方法在2080中都可以注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n)…… 题解列表 2022年01月20日 0 点赞 4 评论 354 浏览 评分:9.9
使用排列组合(插入0) 摘要:解题思路:使用排列组合注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int jiech(int n){ int …… 题解列表 2022年01月20日 0 点赞 0 评论 346 浏览 评分:9.9
相对目前的题解中确实是最简单的答案 摘要:解题思路:首先要将一个数组和要插入的值输入进去,可利用循环来做。再用循环将数组中的每个元素与插入值进行比较排序注意事项:因为输出后的数据是排成一列的,要特别注意输出语句中的数据说明(已踩雷)参考代码:…… 题解列表 2022年01月20日 0 点赞 0 评论 338 浏览 评分:9.9
约瑟夫环——循环链表 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> struct student { int num; struct st…… 题解列表 2022年01月19日 0 点赞 0 评论 326 浏览 评分:9.9
注意w大于2^k进制数所能达到的最大的位数 摘要: #include #include using namespace std; int Level(int k, int w){ //计算用2^k进制表示的数,最多的…… 题解列表 2022年01月19日 0 点赞 0 评论 583 浏览 评分:9.9
暴力出奇迹 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; int sum; bool check(int n) { …… 题解列表 2022年01月19日 0 点赞 0 评论 509 浏览 评分:9.9
数据结构-折半插入排序(加油!) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct sort{ int key;} sort1;typedef struct SqList{ sor…… 题解列表 2022年01月19日 0 点赞 0 评论 434 浏览 评分:0.0
优质题解 最长公共子序列的巧妙转换 摘要:解题思路: 从题目描述看来,两个字符串直接需要通过增、删、改三个操作来变成相同的字符串。那么我们可以发现,只有当两个字符串长度不同时,才需要进行增删操作(第一个字符串比第二个字符串短时进…… 题解列表 2022年01月19日 0 点赞 11 评论 1967 浏览 评分:8.8