2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:import mathx1,y1,x2,y2,x3,y3 = map(float,input().strip().split())a = math.sqrt((x1 - …… 题解列表 2022年11月26日 0 点赞 0 评论 657 浏览 评分:9.3
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:import mathn, x, y = map(int,input().strip().split())print(math.floor(n - y / x)) …… 题解列表 2022年11月26日 0 点赞 0 评论 507 浏览 评分:4.7
结构体之成绩统计 摘要:解题思路:注意事项:参考代码:n=int(input())sn=a=b=c=0d=[]for i in range(n): lis=input().split() if int(lis[-…… 题解列表 2022年11月26日 0 点赞 0 评论 238 浏览 评分:0.0
哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:x=list(map(int,input().split()))x.sort(reverse=True)for i in x: print(i,end=' …… 题解列表 2022年11月25日 0 点赞 0 评论 270 浏览 评分:7.3
解决质因数分解的更简单解决,不能筛选素数 摘要:a,b = map(int,input().split()) for number in range(a,b+1): m = number n_list = [] wh…… 题解列表 2022年11月25日 0 点赞 0 评论 173 浏览 评分:9.9
2771: 大象喝水 摘要:解题思路:注意事项:参考代码:import math h,r = map(int,input().strip().split()) v = math.pi * h * r**2 print(mat…… 题解列表 2022年11月24日 0 点赞 0 评论 556 浏览 评分:6.0
1866: 三位数反转 摘要:解题思路:注意事项:参考代码:while True: try: a = int(input()) b = a // 100 s = (a - b * 1…… 题解列表 2022年11月24日 0 点赞 5 评论 508 浏览 评分:6.0
1173: 计算球体积 摘要:解题思路:注意事项:参考代码:import mathwhile True: try: r = float(input()) pi = math.pi …… 题解列表 2022年11月24日 0 点赞 0 评论 380 浏览 评分:0.0
蓝桥杯算法训练-2的次幂表示-主要记录一下自己花了很长时间的复杂方法 摘要:解题思路:注意事项:参考代码:from math import *# 生成正常的列表def func1(m): list1=[] while 1: a=int(log(m,2…… 题解列表 2022年11月24日 0 点赞 0 评论 213 浏览 评分:0.0
2770: 计算浮点数相除的余数 摘要:解题思路:注意事项:参考代码:a,b = map(float,input().strip().split())print('{:g}'.format(a % b))…… 题解列表 2022年11月23日 0 点赞 0 评论 672 浏览 评分:4.4