题解列表

筛选

计算浮点数相除的余数

摘要:解题思路:思考 k 应该等于什么注意事项:假使余数等于0时,可以知道k的关系式参考代码:#include<stdio.h>int main(){    double a,b;    scanf("%l……

与圆有关的计算

摘要:解题思路:通过题目给的圆的直径、周长、面积分别是2*r、2 * pi * r、pi * r * r,其中约定pi=3.14159来写出圆的直径、周长以及面积注意事项:需要注意的是给出的pi是一个固定的……

三位数反转

摘要:解题思路:注意事项:参考代码:while True:    try:        num = int(input())        a = num % 10        b=num//10%10……

c++解修建灌木

摘要:解题思路:这道题是一道规律题,就是一颗树能长多高完全取决于什么时候被修剪。2 : 2  23 : 4 2 44 : 6 4 4 65 :    8 6 4 6 86 :10 8 6 6 8 10我们发……

1160: 出圈(好东西哈)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>                //memset()必备using namespace std;in……

编写题解 2858: 整理药名

摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n):    a=input()    b=[&#39; &#39; for k in range(len(a)……

c++解刷题统计

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long a,b,n; cin>>a>>b; cin>>n;……

计算分数加减表达式的值

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; float s=0.0; cin>>n; fl……

求分数序列和

摘要:解题思路:斐波那契数列n-2项/n-1项目注意事项:输出格式参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin……