WC '16 Contest 1 J1 - A Spooky Season

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type
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 S (2 \le S \le 20). 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 S o's.

Given the integer S, 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 S.

Output Specification

Output a single line consisting of a single string – the spooky word corresponding to the given value of S.

Sample Input


Sample Output



  • 0
    Code  commented on Jan. 26, 2022, 9:06 p.m.

    You know you're creativity levels have exceeded mankind expectations when you decide to use 5 append functions to solve this problem.

  • 0
    ThatsDan  commented on Jan. 22, 2022, 1:30 p.m.

    So spoooooky, indeed! ;D

  • 2
    HashDev  commented on Jan. 9, 2022, 5:01 p.m. edited

    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.



  • 0
    _wcipeg  commented on Aug. 18, 2021, 5:58 p.m. edited

    The first line is unnecessary and the 'S' in the variable Spooky should be lowercase.

    Edit: forgot to hit the reply button.