You are viewing a single comment's thread. Return to all comments →
3 tight little lines.
n, k = map(int, input().strip().split()) clouds = list(map(int, input().strip().split())) print(100 - sum(1 + 2 * clouds[i] for i in range(0, n, k)))
And an unreadable one-liner.
print((lambda x,y: 100-sum(1+2*y[i] for i in range(0,x[0],x[1])))(list(map(int,input().strip().split())), list(map(int,input().strip().split()))))
Jumping on the Clouds: Revisited
You are viewing a single comment's thread. Return to all comments →
3 tight little lines.
And an unreadable one-liner.