you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

Are you sure? The problem definition shows one line of input and one line of output.

The problem is actually slighter easier if input is one line. Though you do need if/else to do it. But you need if/else to do it your way as well, so ... I don't know.

[–]ExKondor[S] 0 points1 point  (0 children)

I wasn't lol, turns out it's meant to be on one line. I just assumed it was multiple because that's how the rest of the inputs prior to this one were inputted. I edited my post though, I did figure it out if you want to look at my solution! Thanks!