用match case写 摘要:解题思路:注意事项:除法取的整除//参考代码:a,b,c=input().split()a=int(a)b=int(b)match c: case "+"…… 题解列表 2026年03月13日 1 点赞 0 评论 308 浏览 评分:10.0
数学思维处理 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if (a**2+b**2)**0.5<=2**0.5:pr…… 题解列表 2026年03月12日 1 点赞 0 评论 309 浏览 评分:10.0
用2行代码解决 解题思路:注意事项:参考代码:num=list(map(int,input().split()))print(''.join(map(str,sorted(num)))) 题解列表 2026年03月09日 0 点赞 0 评论 399 浏览 评分:10.0
编写题解 2770: 计算浮点数相除的余数 解题思路:注意事项:参考代码:a,b=map(float,input().split())c=a%bprint(f"{c:g}") 题解列表 2026年03月06日 0 点赞 0 评论 381 浏览 评分:0.0
#与圆相关的计算,python 解题思路:注意事项:参考代码:r=float(input())pi=3.14159print(f"{2*r:.4f}{2*pi*r:.4f}{pi*r*r:.4f}") 题解列表 2026年03月06日 2 点赞 0 评论 407 浏览 评分:10.0
巧妙运用模运算 摘要:解题思路:规律:如果(a - b) % 3 == 1→ 前者赢如果(a - b) % 3 == 2→ 后者赢如果(a - b) % 3 ==…… 题解列表 2026年02月26日 1 点赞 0 评论 316 浏览 评分:10.0
1127: C语言训练-尼科彻斯定理 摘要:解题思路:注意事项:参考代码:n = int(input())m = n**3l = []if m % 2 == 1: k = m//n k = k…… 题解列表 2026年02月11日 0 点赞 0 评论 519 浏览 评分:0.0
1754: 字符串排序 摘要:解题思路:注意事项:参考代码:try: while True: # 读取字符串个数  …… 题解列表 2026年02月11日 0 点赞 0 评论 445 浏览 评分:0.0
编写题解 2900: 螺旋加密 摘要:解题思路:注意事项:参考代码:d = input().split()if(len(d)>3): for i in range(3,len(d)): &nbs…… 题解列表 2026年02月10日 0 点赞 0 评论 479 浏览 评分:0.0
2899: 蛇形填充数组 摘要:解题思路:注意事项:参考代码:n = int(input())m = [[0]*n for _ in range(n)]c = 1for k in range(2*n-1): …… 题解列表 2026年02月10日 0 点赞 0 评论 428 浏览 评分:0.0