腾讯笔试0分代码
# 开锁 10%
n, m = map(int, input().split())
time = [[0] * m for _ in range(n)]
ans = 0
for i in range(n):
time[i] = list(map(int, input().split()))
if n == 1:
print('%.6f' % sum(time[0]))
else:
for j in range(m):
num = nums = []
for k in range(n):
nums.append(time[k][j])
num = min(nums)
ans += float(1 / n * num + (n - 1) / n * sum(nums))
print('%.6f' % ans)
# 勇闯币圈 20%
T = int(input())
for _ in range(T):
t = int(input())
state = list(map(float, input().split()))
P = [[0] * 3 for _ in range(3)]
for i in range(3):
P[i] = list(map(float, input().split()))
for k in range(t-1):
w = float(P[0][0] * state[0] + P[0][1] * state[1] + P[0][2] * state[2])
d = float(P[1][0] * state[0] + P[1][1] * state[1] + P[1][2] * state[2])
z = float(P[2][0] * state[0] + P[2][1] * state[1] + P[2][2] * state[2])
state = [w, d, z]
if z > 0.5:
print(1)
else:
print(0)
# 车队 0%
n = int(input())
speed = list(map(int, input().split()))
ans = [len(speed)]
while max(speed) - min(speed) > 10:
mi = min(speed)
ma = max(speed)
speed.remove(mi)
if max(speed) - min(speed) <= 10:
ans.append(len(speed))
else:
speed.append(mi)
speed.remove(ma)
if max(speed) - min(speed) <= 10:
ans.append(len(speed))
speed.remove(mi)
print(max(ans))
#腾讯笔试##笔试题目#
荣耀工作强度 439人发布
