题解列表

筛选

题解 2805: 乘方计算

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int z,f=0,b,c=0; cin>>b>>z; f=……

题解 2803: 整数的个数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int f,a,b,c=0,d=0,e=0; cin>>b;……

题解 2801: 奇数求和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c=0,d; cin>>a>>b; if(a……

C++ |1017完数的判断| 不用数组、自定义函数的“笨方法”

###根本不用数组、函数!###极其明了、通俗易懂!######之所以叫笨方法,N值大了之后会明显变慢######而且该代码用了两次重复的遍历来寻找因子以便按格式输出######不过如果不需要输出因子,也就不需要重复遍历了#####因此,大佬请火速离场~#####因此,

使用冒泡排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void f(int a[], int s) {         int i, j, t;         for (i = 0; i ……

与圆相关的计算

摘要:解题思路:注意事项:不能用“cin”和“cout”,用了就会报错。参考代码:#include<iostream>using namespace std;int main(){   double r; ……

鸡尾酒疗法(java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

救援(java代码)

摘要:解题思路:注意事项: Math.sqrt()方法用于求算术平方根  Math.ceil()向上取整 扩展: Math.round()四舍五人的整数  Math.floor()向下取整参考代码:impo……