Hi. I recently found 3 problems in which we had to input multiple strings, separated by spaces and/or return(supposedly). But taking input 1 character at a time using the
getchar() function gives WA, while
Is this a test case defect, or am I doing it wrong?
Take these solutions for instance: