Call It Even
CodeChefOpen on judge ↗
Another exercise on input and output. This time, you have to read multiple lines of inputs. There is a reference variable $N$, which denotes the number of inputs. Read $N$ number of inputs. If the value of $N$ is odd, out of the integers received as input, print only those at odd positions. In case if $N$ is even, integers at odd position has to printed as output. Each integer has to be displayed
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start