判断数正负 摘要:解题思路:注意事项:参考代码:N = int(input())if N > 0: print("positive")elif N == 0: print("zero")elif N < 0…… 题解列表 2024年07月22日 0 点赞 0 评论 793 浏览 评分:0.0
计算分数的浮点数值 摘要:解题思路:注意事项:保留九位小数,注意被除数不能为零参考代码:a,b = map(int,input(().split()) if b != 0: result = round(a/b,9) …… 题解列表 2024年07月21日 0 点赞 0 评论 1077 浏览 评分:0.0
地板砖顶着地板砖 摘要:解题思路:无注意事项:无参考代码:n=input()n=int(n)b=0for i in range(2,n): b=0 for j in range(2,i): if i…… 题解列表 2024年07月17日 0 点赞 0 评论 586 浏览 评分:0.0
繁花似锦分身乏术列今年初发的风格的放过他过分 摘要:解题思路:无注意事项:无参考代码:g=input()g=int(g)if g>=10 and g<=99: print("1")else: print("0")…… 题解列表 2024年07月16日 0 点赞 0 评论 897 浏览 评分:9.9
关于Python的基本输入输出 摘要:import sys sys.set_int_max_str_digits(100000000) while True: try: n = int(input()) …… 题解列表 2024年07月15日 0 点赞 0 评论 507 浏览 评分:0.0
python优雅解法-回文数组-贪心 摘要:n = int(input()) nums = list(map(int, input().split())) result = [nums[n - i - 1] - nums[i] for i …… 题解列表 2024年07月14日 2 点赞 0 评论 1094 浏览 评分:8.4
高精度计算用Python爽到爆 摘要:from decimal import Decimal, getcontext # 设置小数点后的精度 getcontext().prec = 500 # 输入两个浮点数并转换为Decimal类…… 题解列表 2024年07月14日 0 点赞 0 评论 550 浏览 评分:0.0
大数计算用Python爽到爆 摘要:import sys sys.set_int_max_str_digits(50000000)# 增加到50000000位 n=int(input()) s=1 for i in range(…… 题解列表 2024年07月14日 0 点赞 0 评论 524 浏览 评分:9.9
一行代码解决 摘要:print(len([i for i in list(map(int, input().split())) if i & (i - 1) == 0]) if input() else 0)…… 题解列表 2024年07月14日 5 点赞 3 评论 1892 浏览 评分:9.0