题解列表

筛选

编写题解 1669: 求圆的面积

摘要:解题思路:导入math库,进行求面积之后,注意输出小数点后两位注意事项:导入math库参考代码:import matha = float(input())p = math.pis = a*a*ppri……

时间复杂度很低

摘要:解题思路:先转换成从0到y-x,这样固定了从13加15*n的数,然后计数x,求和输出。注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run thi……

Treeset去重和排序

摘要:解题思路: 注意事项: 参考代码: import java.util.Arrays; import java.util.Scanner; import java.util.TreeS……

1139: C语言训练-求素数问题

摘要:解题思路:一一枚举,再判断是否是质数。注意事项:注意有用#include<cmath>!!!参考代码:#include<iostream> #include<cmath> using namesp……

1145: C语言训练-自由落体问题

摘要:解题思路:使用循环第一次单独算!后面每次算两个!注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int m……

A+B for Input-Output Practice (VI)

摘要:解题思路:利用数组注意事项:审好题是关键;参考代码:#include<bits/stdc++.h>using namespace std; int main(){  int n;  while(cin……