求助!
c1, c2, res = 0, 0, 0while (n := int(input())):
if n > 0:
c1 += 1
else:
c2 += 1
res += n
print(res // (c1 + c2), c1, c2, sep = '\n') c , n , p , s = 0 , 0 , 0 , 0
while True:
x = int(input())
if x :
if x > 0 :
p += 1
else :
n += 1
c += 1
s += x
else:
break
print(s // c)
print(p)
print(n)
页:
[1]