Woburn Challenge 2016-17 Round 1 - Junior Division

Late October can be a rather frightening time of year. Night begins to fall ever earlier, ancient Pagan rituals make demons stir, and at the end of the month, hordes of small creatures can even be seen roaming the streets! It's a spooky sight if there ever was one.
But just how spooky is this demonic festival? Its spookiness level can,
in fact, be measured and represented as a single integer
. However, a simple number doesn't truly do the spooky
sensation justice. As such, it can also be described with the word
spoo...ooky
, with exactly
o
's.
Given the integer , can you cast a spooky incantation on your
computer to have it produce the corresponding spooky word?
Input Specification
The first and only line of input consists of a single integer .
Output Specification
Output a single line consisting of a single string – the spooky word
corresponding to the given value of .
Sample Input
5
Sample Output
spoooooky
Comments
The solution is absurdly simple if you understand the trick. You're literally just telling it how many times the letter "o" should be used.
This is very frustrating that program does not accept any text in INPUT.
The instructions are pretty unclear. Formatted Strings cause it to fail despite answers being correct, if statements to manage the 2 <= S <= 20 causes it to fail... I re-wrote the program at least 15 different ways to get the same output until finally one was accepted. Am I missing something here?
Well, the accepted submission was the only one that had lowercase answers
What is the variable name for your number input?
I am a bit lost why my submission fails all the time. From my understanding of the problem it does exactly what it's supposed to do. You input a number (between 2 and 20) and based on that you print the word spooky with the corresponding amount of "o"s. What am I missing here?
Nevermind I figured it out, your input prompt is not supposed to say anything and just be blank. I had something like "Choose a number: " which was wrong.
Trying to figure out how to limit the input to an integer between 2 and 20. That has not been covered in the book yet, to my knowledge. I have the rest figured out.
Looks like that is not actually a requirement. The code I submitted was accepted. So why list that as a requirement?
You are not the one limiting the integer.
means that the problem guarantees that the input given to your program will always be between
and
and you don't have to worry about making your program work for any larger values of
.
This comment is hidden due to too much negative feedback. Show it anyway.
I'm not sure if I'm asking in the right place, but are we not able to actually view the code of other submissions?
LE: Nevermind, figured it out, you have to first submit something yourself.
You first need to solve the question to view other submissions.
You know you're creativity levels have exceeded mankind expectations when you decide to use 5 append functions to solve this problem.
So spoooooky, indeed! ;D
Little bit confusing to understand the specification.
You need to make a program to output string “o” many times using the data from your input and then add the results with string sp and sky somehow.
GL
HashDev
The first line is unnecessary and the 'S' in the variable Spooky should be lowercase.
Edit: forgot to hit the reply button.