Glenforest Winter Open 2015 (Junior)

enter image description here

Fardin is a student in Glenforest Secondary School but for the past 2 years, he hasn’t cared about Christmas time at Glen. But times have changed and Fardin now embraces the school spirit set up by SAC. However, Fardin is too lazy to do all the work of Christmas time, especially the planning. Help Fardin get ready for Christmas!

Look at Fardin’s decorations! --> here (youtube link)

The problem writers for this contest will be Awaykened and haliu.

This contest will be unrated

The contest consists of 5 questions with a range of difficulties, and you can get partial marks for partial solutions in the form of subtasks. If you cannot solve a problem fully, we encourage you to go for these partial marks. The difficulty of the problems will be around CCC Junior level or lower.

After joining the contest, you proceed to the Problems tab to begin. You can also go to Users if you wish to see the rankings.

We have listed below some advice as well as contest strategies:

  • Start from the beginning. Ties will be broken by the sum of times used to solve the problems starting from the beginning of the contest. The last submission time of your highest score will be used.
  • It is strongly advised to run your code on your own computer with the sample input we provide before submitting. It's faster to find and fix mistakes at this stage rather than submitting and waiting only to find out that your solution doesn't compile.

  • Remove all extra debugging code and/or input prompts from your code before submitting. The judge is very strict — most of the time, it requires your output to match exactly.

  • Do not pause program execution at the end. The judging process is automated. You should use stdin / stdout to perform input / output, respectively.

  • Just because your program works with the sample input doesn’t guarantee that it will earn full points. Read the problem statement very carefully to look for things you may have missed on the first read-through. It is not forbidden — in fact, even encouraged to make your own test cases to debug your program on.

  • The test data is guaranteed to fit within the constraints given. You do not have to perform any extra checks to make sure of this fact.

Good luck!


Problem Points AC Rate Users
Festive Fardin 3 30.3% 203
Purchasing Presents 3p 12.1% 138
Christmas Presents 5p 21.8% 43
Christmas Music 5p 17.6% 19
Secret Santa 7p 58.7% 67


  • 1
    odaniel  commented on Dec. 16, 2015, 10:25 p.m.

    Hi, sorry if this isn't the right way to do this. Once I finished up the Junior contest, I decided to check out whether or not I could handle the Senior (spoiler alert: I couldn't). However, I must have forgotten to switch back, because the ranking on my page says that I came in last for the Senior contest without mentioning the Junior at all :( Would it be possible to display my Junior score instead? Thanks!

    • 1
      bobhob314  commented on Dec. 17, 2015, 9:38 a.m.

      The Junior was unrated. Trust me, I'm feeling it too.

      • 1
        odaniel  commented on Dec. 17, 2015, 10:50 a.m.


  • 1
    baal_hammon  commented on Dec. 14, 2015, 12:15 p.m.

    is the contest IOI style ? thanks

    • 1
      awaykened  commented on Dec. 14, 2015, 12:21 p.m.

      Sorry, i'm not very familiar with IOI style contests. These two contests attempts to mirror the CCC, that is, there will be partial scoring, no interactive problems, tasks will be weighted equally, and there will be immediate judge feedback.

  • 0
    brunoalmeida  commented on Dec. 13, 2015, 3:41 p.m.

    I think this is much better than Fardin's decorations (credits to David for finding this):

    • 0
      haliu  commented on Dec. 13, 2015, 3:46 p.m.

      That's not even Fardin's house. It's just some house in the neighbourhood.

      • 0
        brunoalmeida  commented on Dec. 13, 2015, 4:20 p.m.

        I know, but this is much better than any house ever