+ 3

Code coach: that's odd (solved)

I don't understand how should be the input of the values. Does it expect the user going inserting the numbers by an input or generated automatically? Below my code. https://code.sololearn.com/cxqtYKNRuA6H/?ref=app

13th Feb 2020, 12:14 AM
GeraltdeRivia
4 Respuestas
+ 12
The first line denotes N, the number of numbers. The next N lines denote the individual entries. You have not implemented that yet. Try these test cases: Input 1: 4 1 3 2 2 Output 1: 4 Input 2: 7 1 3 5 7 9 2 8 Output: 10 Input 3:1 5 Output 3:0
13th Feb 2020, 12:29 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 7
Great
13th Feb 2020, 12:43 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Thank you, 🌟(Pro)metheus 🇸🇬 I understood the problem, so now it is solved. Yes it was expecting multiple input by the user.
13th Feb 2020, 12:42 AM
GeraltdeRivia
14th Mar 2020, 8:04 PM
高于鈞
高于鈞 - avatar