Woburn Challenge 2015-16 Round 2 - Junior Division
You might be aware that the events of the Star Wars saga took place a
long time ago, in a galaxy that was rather far away. But just how far
away was it? We can try to describe it by repeating the word far
a
certain number of times in the following sentence format:
In the above example, the word far
is repeated twice. However, we'd
instead like to repeat it exactly times without
changing the rest of the sentence at all. There should be a comma right
after each occurrence except for the last one.
Given , can you produce the correct sentence?
Input Specification
The input consists of a single integer .
Output Specification
Output on a single line the appropriate sentence with far
repeated
times. It must match the correct answer exactly!
Sample Input 1
1
Sample Output 1
A long time ago in a galaxy far away...
Sample Input 2
4
Sample Output 2
A long time ago in a galaxy far, far, far, far away...
Comments
Loving with Russia
This comment is hidden due to too much negative feedback. Show it anyway.
My test was successful, but the calculation result of this site is 'Failure'.
ur "A" in the sentence is uncapitalized
My code always outputs 3 far values when the N value input is less than 3. Can someone help me see where the problem lies
This worked in my testing but isn't working in the judge, can someone help me figure out where I'm going wrong?
Never mind, the issue was that I forgot to add the "..." at the end of the sentence so it was counting it as incorrect.
...
I dont understand why my code doest work as i am getting expected output can some one help
where are the ending "..." also you dont need the if statement