理性的猫头鹰愿offer多多
理性的猫头鹰愿offer多多
全部文章
分类
归档
标签
去牛客网
登录
/
注册
理性的猫头鹰愿offer多多的博客
全部文章
(共15篇)
题解 | 最大的差
n = int(input()) lst = list(map(int,input().split())) # lst.sort() # S = lst[-1] - lst[0] # print(S) max = min = lst[0] for item in lst: if max &l...
2025-11-11
0
10
题解 | 多组数据a+b III
import sys for line in sys.stdin: a,b = map(int,line.split()) if a == b == 0: break else: sum = a + b print(sum) ...
2025-11-11
0
10
题解 | 多组输入a+b II
T = int(input()) for i in range(1,T+1): # 每行输入两个整数 a,b = map(int,input().split()) sum = a + b print(sum) i += 1
2025-11-11
0
11
题解 | 时间转换
需要注意的是这里的秒 = 时+分+秒,不是分别转化为时分秒 seconds = int(input()) # seconds = 3661 or seconds = 61 secs = seconds % 60 seconds -= secs hours = seconds // 3600 seco...
2025-11-10
0
12
题解 | 小美的排列询问
# 读取输入 n = int(input()) a = list(map(int,input().split())) x,y = map(int,input().split()) # 创建字典,索引 -> 元素 pos = {} for idx,num in enumerate(a): # ...
2025-08-15
0
41
首页
上一页
1
2
下一页
末页