1954: 话费计算 摘要:解题思路:注意事项:参考代码:a = int(input())s = 50 + a*0.4print("{:.1f}".format(s))…… 题解列表 2021年10月23日 0 点赞 0 评论 184 浏览 评分:0.0
二进制移位练习,用移位运算符<< 、>>,与运算& 摘要:解题思路:参考第一个优质题解,不理解的还可以看第一个题解因为题目为了取二进制数从右端开始的第4至7位,所以我们只需要找一个二进制数与n的二进制数的4-7位进行&运算(都是1则为1,有0则为0)。所以我…… 题解列表 2021年10月23日 2 点赞 0 评论 472 浏览 评分:9.9
编写题解 1159: 偶数求和 摘要:解题思路:分奇偶情况讨论注意事项:输出次数的计算参考代码:#include<iostream>using namespace std;int main(){ int n, m; while…… 题解列表 2021年10月23日 0 点赞 0 评论 166 浏览 评分: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 评论 426 浏览 评分: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 评论 332 浏览 评分: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 评论 162 浏览 评分:0.0
1173: 计算球体积-题解(python) 摘要:解题思路:注意事项:参考代码:import mathwhile True: r = float(input()) p = math.pi v = (4/3)*p*(r**3) …… 题解列表 2021年10月23日 0 点赞 1 评论 956 浏览 评分:7.0
[C++][基础算法讲解]简单理解动态规划 摘要:视频讲解:https://www.bilibili.com/video/BV1Lh411n7wi/参考代码:#include #include #include #include using name…… 题解列表 2021年10月23日 0 点赞 0 评论 374 浏览 评分:2.0
tom问题 (C语言解法) 摘要:#include<stdio.h>int main(){ long n,sum; while(scanf("%ld",&n)!=EOF) { sum=0; …… 题解列表 2021年10月23日 0 点赞 0 评论 330 浏览 评分:6.0
[归并排序]数组法(c++) 摘要:解题思路:先分别将两个数组各自排序,再使用归并排序注意事项:参考代码:#include <iostream>using namespace std;int main() { int n, m, t; …… 题解列表 2021年10月23日 0 点赞 0 评论 316 浏览 评分:9.9