编写题解 1160: 出圈 摘要:解题思路: 寻找规律注意事项: 话不多说,代码简单易懂参考代码:#include<iostream>using namespace s…… 题解列表 2021年10月24日 0 点赞 0 评论 437 浏览 评分:9.9
java递归--阶乘求和 摘要:解题思路:如何求得每一项的阶乘1! 12! 1*23! 1*2*34! 1*2*3*4....注意事项:自己的代码,报编译50错误的,是精度问题将int型改为long类型参考代码:public sta…… 题解列表 2021年10月24日 0 点赞 0 评论 345 浏览 评分:0.0
二级C语言-平均值计算 摘要:参考代码:#include<stdio.h>#define N 10 int main(){ int score[N], i, aver, Hi…… 题解列表 2021年10月24日 0 点赞 0 评论 463 浏览 评分:9.0
1954: 话费计算 摘要:解题思路:注意事项:参考代码:a = int(input())s = 50 + a*0.4print("{:.1f}".format(s))…… 题解列表 2021年10月23日 0 点赞 0 评论 226 浏览 评分:0.0
二进制移位练习,用移位运算符<< 、>>,与运算& 摘要:解题思路:参考第一个优质题解,不理解的还可以看第一个题解因为题目为了取二进制数从右端开始的第4至7位,所以我们只需要找一个二进制数与n的二进制数的4-7位进行&运算(都是1则为1,有0则为0)。所以我…… 题解列表 2021年10月23日 2 点赞 0 评论 522 浏览 评分:9.9
编写题解 1159: 偶数求和 摘要:解题思路:分奇偶情况讨论注意事项:输出次数的计算参考代码:#include<iostream>using namespace std;int main(){ int n, m; while…… 题解列表 2021年10月23日 0 点赞 0 评论 201 浏览 评分:0.0
1152: C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)-题解(python) 摘要:解题思路:注意事项:参考代码:n = int(input())s = 1if n == 1: print("{:.6f}".format(s))else: for i in range(2…… 题解列表 2021年10月23日 0 点赞 0 评论 477 浏览 评分:9.0
1151: C语言训练-计算一个整数N的阶乘-题解(python) 摘要:解题思路:注意事项:参考代码:n = int(input())s = 1for i in range(1,n+1): s *= iprint(s)…… 题解列表 2021年10月23日 0 点赞 0 评论 376 浏览 评分:0.0
题解 1485: 蓝桥杯算法提高VIP-Torry的困惑(提高型) 摘要:解题思路:注意事项:参考代码:简短方式如下#include<stdio.h>int main(){ int count=0,i=2,f,k=1,t,n; int a[100000]={0}; a…… 题解列表 2021年10月23日 0 点赞 0 评论 203 浏览 评分:0.0
1173: 计算球体积-题解(python) 摘要:解题思路:注意事项:参考代码:import mathwhile True: r = float(input()) p = math.pi v = (4/3)*p*(r**3) …… 题解列表 2021年10月23日 0 点赞 1 评论 1058 浏览 评分:7.0