Canadian Computing Competition: 2009 Stage 1, Junior #4
The student council at Central Canada Collegiate is preparing signs with the message WELCOME TO CCC GOOD LUCK TODAY
on various walls around the school. A sign is wide enough to hold
Here is how the words are put onto a sign. First, as many words as possible are placed on the first line, without exceeding the
Your program will read the available width .
character to indicate a space.
Constraints
You may assume that
Sample Input 1
15
Sample Output 1
WELCOME..TO.CCC
GOOD.LUCK.TODAY
Sample Input 2
26
Sample Output 2
WELCOME..TO..CCC.GOOD.LUCK
TODAY.....................
Comments
i WA'd until i changed from println to print 😭😭😭
Note: your output should end with a newline
^At least, if you're using something like
System.out.print()
(Proof: code WA'd until I added aSystem.out.println();
after everything)why did he get downvoted xD
I did that and it fixed my code