Problem 299. vectorization in N

Created by Julio

For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.

Tags

Problem Group

52 solvers submitted 114 solutions (2.19 solutions/solver).

Problem Comments

Solution Comments