数组排序,c++ ,sort 摘要:解题思路:因为要的是排序之后的下标,而且这个下标绑定了排序后对应数字,要求按照未排序前的数组顺序输出排序后的次序(下标+1) 所以使用结构体去绑定数字和下标注意事项:参考…… 题解列表 2024年01月30日 0 点赞 0 评论 361 浏览 评分:0.0
冶炼金属二分法代码 摘要:解题思路:注意事项:参考代码://冶炼金属:二分#include<bits/stdc++.h>#define int long longusing namespace std;const int N …… 题解列表 2024年01月30日 0 点赞 0 评论 203 浏览 评分:0.0
1005温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a,b; scanf("%f",&a); b = 5*(a-32)/9; p…… 题解列表 2024年01月30日 0 点赞 0 评论 213 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:质因数分解法,求最大公约数,两数之积除最大公约数求最小公倍数。注意事项:参考代码:int getMaxComDivisor(int a, int b){ int maxComDivis…… 题解列表 2024年01月30日 0 点赞 0 评论 134 浏览 评分:0.0
二级C语言-阶乘数列 摘要:解题思路:可利用两个for循环求解此题,即外部for循环遍历每一个数内部for循环用于求出每个数的阶乘最后输出时使用科学计数法即可%e,保留两位小数注意事项:使用时需要把ab均定义为double参考代…… 题解列表 2024年01月30日 0 点赞 0 评论 157 浏览 评分:0.0
编写题解 1092: A+B for Input-Output Practice 摘要:public class t_1089 { public static void main(String args[]) { Scanner sc=new Scanner(System.in);…… 题解列表 2024年01月30日 0 点赞 0 评论 137 浏览 评分:0.0
编写题解 3020: 最大数位置 摘要:public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(…… 题解列表 2024年01月30日 0 点赞 0 评论 326 浏览 评分:0.0
2218: 蓝桥杯算法训练-二进制数数 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())s=[]s2=[]for i in range(a,b+1): c=bin(i) s.append(c…… 题解列表 2024年01月30日 0 点赞 0 评论 168 浏览 评分:0.0
编写题解 1738: 排序 摘要:package test; //题目 1738: 排序 import java.util.Scanner; public class t_1738 { public static void …… 题解列表 2024年01月30日 0 点赞 0 评论 193 浏览 评分:0.0
编写题解 2834: 与指定数字相同的数的个数 摘要:参考代码:package arrLast; //题目 2834: 与指定数字相同的数的个数 import java.util.Scanner; public class t_2834 { p…… 题解列表 2024年01月30日 1 点赞 0 评论 254 浏览 评分:0.0