+ 1
one out of 5 test case is failed
code is not working https://code.sololearn.com/cHa0s40257XJ/?ref=app https://code.sololearn.com/cHa0s40257XJ/?ref=app
2 ответов
+ 1
Doesn't work in SoloLearn or anywhere?
It would help if you provided more details, e.g. error message (if any), what input was given etc. So audience know where to focus on.
And please tag your language specifics (Java) 👍
0
Yes. Be some more specific to question...
You are using split method to split input into words, words can't divible by a number or with any..
If you trying to input to separate characters array, then use char array, fill with chars or use toCharArray function. Else use Integer.parseInt method..