← All problemsSign in

Oxymoron of a Number

Chef has a number __N__. Chef likes oxymoron and he has devised a way to combine his love of oxymoron and number __N__. According to him, a number is an oxymoron if: + It is even and the sum of all digits of the number is odd, or + It is odd and the sum of all digits of the number is even. That is, if N = 17, the number is odd but the sum (8) is even, or if N = 36, the number is even but the s

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start