1023: [编程入门]选择排序 摘要:解题思路: 这里使用了冒泡排序,将最大的数放到后面,再逐渐范围比较注意事项:参考代码:public static void main(String[] args) {// …… 题解列表 2022年01月20日 0 点赞 1 评论 175 浏览 评分:6.0
解决密码的思路 摘要:解题思路:注意事项:其他字符是有规定的,不能用else取代参考代码:#include<stdio.h>#include<string.h>int main(){int n,len;if(scanf("…… 题解列表 2022年01月20日 0 点赞 0 评论 247 浏览 评分:9.9
题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路: 我是想着套两个for,第一个for遍历a以内的数,第二个for就是进行判断是否为素数,里面的if,如果==,就是没有能整除的数了,因此就可以输出素数。第二个if一旦取模为0,…… 题解列表 2022年01月20日 0 点赞 0 评论 621 浏览 评分:9.9
题解 1021: [编程入门]迭代法求平方根 摘要:解题思路: 首先猜测一个值X1=a/2,然后根据迭代公式 X(n+1)=(Xn+a/Xn)/2注意事项:参考代码:public class test1021 {// 用迭代法求 平方根//…… 题解列表 2022年01月20日 0 点赞 1 评论 1045 浏览 评分:9.9
这个为啥不行 摘要:解题思路:输入十六进制,直接输出八进制,这种方法在2080中都可以注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n)…… 题解列表 2022年01月20日 0 点赞 4 评论 255 浏览 评分:9.9
使用排列组合(插入0) 摘要:解题思路:使用排列组合注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int jiech(int n){ int …… 题解列表 2022年01月20日 0 点赞 0 评论 209 浏览 评分:9.9
相对目前的题解中确实是最简单的答案 摘要:解题思路:首先要将一个数组和要插入的值输入进去,可利用循环来做。再用循环将数组中的每个元素与插入值进行比较排序注意事项:因为输出后的数据是排成一列的,要特别注意输出语句中的数据说明(已踩雷)参考代码:…… 题解列表 2022年01月20日 0 点赞 0 评论 215 浏览 评分:9.9
约瑟夫环——循环链表 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> struct student { int num; struct st…… 题解列表 2022年01月19日 0 点赞 0 评论 211 浏览 评分:9.9
注意w大于2^k进制数所能达到的最大的位数 摘要: #include #include using namespace std; int Level(int k, int w){ //计算用2^k进制表示的数,最多的…… 题解列表 2022年01月19日 0 点赞 0 评论 470 浏览 评分:9.9