题解列表

筛选

数学思维处理

摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if (a**2+b**2)**0.5<=2**0.5:pr……

用2行代码解决

摘要:解题思路:注意事项:参考代码:num = list( map(int,input( ).split( ) ))print(' '.join( map(str,sorted( num))……

#与圆相关的计算,python

摘要:解题思路:注意事项:参考代码:r = float(input())pi = 3.14159print(f"{2*r:.4f} {2*pi*r:.4f} {pi*r*r:.4f}")……

巧妙运用模运算

摘要:解题思路:规律:如果(a - b) % 3 == 1→ 前者赢如果(a - b) % 3 == 2→ 后者赢如果(a - b) % 3 ==……

1754: 字符串排序

摘要:解题思路:注意事项:参考代码:try: while True: # 读取字符串个数  ……

2899: 蛇形填充数组

摘要:解题思路:注意事项:参考代码:n = int(input())m = [[0]*n for _ in range(n)]c = 1for k in range(2*n-1): ……

2891: 矩阵剪刀石头布

摘要:解题思路:注意事项:参考代码:from copy import deepcopyr,c,day = map(int,input().split())matrix = [[i for i in inpu……