Xiangh
Xiangh
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Xiangh的博客
全部文章
(共3篇)
题解 | 标签在前K个近邻中的出现次数
'''读取数据''' k, m, n, s = map(int, input().split()) x = list(map(float, input().split())) # print(x) samples = [] while True: try: line = in...
2025-09-14
0
27
题解 | 单组_二维字符数组
import sys a, b = input().split() x = list() for line in sys.stdin: x.append(line.split()[0]) y = x[::-1] for item in y: print(item[::-1])
2025-09-14
0
16
题解 | 多组_二维数组_T组形式
import sys n = list(map(int, input().split())) for i in range(n[0]): x = 0 a,b = list(map(int, input().split())) for j in range(a): ...
2025-09-14
0
34