C++代码进行解题,思路可与C语言共享 摘要:解题思路:运用数组进行数据存储,遍历所有数组与每次参考的数组进行比较大小,再进行交换。注意事项:注意m的原数据重新覆盖#include <iostream>using namespace std;in…… 题解列表 2023年07月15日 0 点赞 0 评论 367 浏览 评分:0.0
整数平均值 摘要:解题思路:不太标准,写着玩的。注意事项:参考代码:#include<iostream>using namespace std;int aver(int *p,int n){ int s=0; …… 题解列表 2023年07月15日 0 点赞 0 评论 368 浏览 评分:0.0
检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(int …… 题解列表 2023年07月15日 0 点赞 0 评论 333 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(i…… 题解列表 2023年07月15日 0 点赞 0 评论 437 浏览 评分:0.0
第n小的质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2023年07月15日 0 点赞 0 评论 357 浏览 评分:0.0
-质因数分解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,a=0,maxx=0; cin>>…… 题解列表 2023年07月15日 0 点赞 0 评论 385 浏览 评分:0.0
大等于n的最小完全平方数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(i…… 题解列表 2023年07月15日 0 点赞 0 评论 336 浏览 评分:0.0
2020: 快速排序练习-关键值取数组第一个元素L 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; void qsort(int* arr,int …… 题解列表 2023年07月15日 0 点赞 0 评论 451 浏览 评分:0.0
一元二次方程 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] ar…… 题解列表 2023年07月15日 0 点赞 0 评论 389 浏览 评分:0.0
题目1113 保留字母 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class 测试 { public static void main(String[] args) …… 题解列表 2023年07月15日 0 点赞 0 评论 409 浏览 评分:0.0