DMOPC '14 May Contest
Welcome to the eighth Don Mills Open Programming Competition of the school year!
The problem writers this time are
, , and .This round will be rated for all participants.
The theme for this month's contest is Cross Ange.
Before the contest date, you may wish to check out the tips and help pages.
The contest consists of 6 questions with a wide 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 a problem may be anywhere from CCC Junior to CCO level. You will have 3 hours to complete the contest. Check when the contest begins in your timezone here.
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.
- Do not just print out a hardcoded answer. There will be preliminary tests (pretests) to prevent such behavior. These pretests will generally be small enough to solve with almost any algorithm and will not contain any tricky corner cases. They are there to test for a basic understanding of a problem. The sample input will always be included as the first few pretests.
- It is guaranteed that all the problems will be solvable with C++.
At the end of the contest, you may comment below to appeal a judging verdict. In the case of appeals, the decision(s) of DMOJ staff is final.
After the contest finishes, we'll have a optional feedback form we would like you to fill out.
Good luck!
Problems
Problem | Points | AC Rate | Users | Editorials |
---|---|---|---|---|
DMOPC '14 Contest 7 P1 - Flare | 3p | 55.1% | 567 | Editorial |
DMOPC '14 Contest 7 P2 - Tides | 5p | 18.9% | 814 | |
DMOPC '14 Contest 7 P3 - Globally Unique Shells | 5p | 33.7% | 242 | |
DMOPC '14 Contest 7 P4 - Sand Triangle | 7p | 37.6% | 225 | |
DMOPC '14 Contest 7 P5 - Aurora | 10p | 30.3% | 65 | Editorial |
DMOPC '14 Contest 7 P6 - Revenge of the Bins | 20p | 33.2% | 117 |
Comments
Hello DMCI members,
Is there going to be no DMOPC '15 June? I have grown to love these contests over the months and hope that they will be continued.
Thanks!
Greetings kind sirs and madams,
I would like to inquire if there will be competitions that run in the duration of the summer times.
Will the don mills Students be hosting the DMOPCs?
Thanks you,
Rabhit
It's not certain that we will be hosting the DMOPC during the summer months (we might, though). However, even if we don't, there still won't be a shortage of other contests for everyone to participate in!
I managed to solve the first 4 out of the 6 problems completely. I liked the problems which I managed to solve. Though, I wasted a lot of time debugging the fourth one, and then had to go away for a while to submit a report so as to fail to not find time to pick up partial points in the 5th or the 6th problem. Anyway.
1. Flare
My solution is basically this:
Given the value , we have to find the value such that the value of is equal to zero. So, we rearrange the equation, and thus, it changes to - since had a negative sign. After which, when the is canceled, the equation reduces to , which further reduces to: which is our answer.
2. Tides
This question was also simple, but had a lot of cases to deal with. I got 70/100 only initially, because I was not considering the case where the high tide ends up occurring before the low tide, which according to the problem statement (If you read carefully!) is also not a valid case.
Depending on the language you choose to code this one in, it's just an implementation based problem. Checking if the sequence is an increasing one between low-tide and high-tide values is easy.
3. Globally Unique Shells
This problem like its name is actually ends up being a problem forcing you to think for a while, if you don't look at the constraints properly. For a while, I didn't realize that the value for the shells can range till , I thought it was till . So, I made a hash table till for the value of , which obviously resulted in a WA.
Here's what I did:
What are the other ways in which people solved this one?
4. Sand Triangle
For a long while, my solution kept passing the smaller constraint case, while consistently failing on the larger one because of a silly mistake I was doing. (Counted the number of 9s in my code wrongly - shame on me!)
I guess the general ideas, which I guess would have been used by people in this problem could be: pre-computation of certain values, then binary searching them, then finding out the required answer.
Definitely the best problem I solved in this contest, required thinking, and making me use pen and paper.
Here's my code:
General Feedback:
The contest in general was pretty good. The timings for me, in India were pretty odd, though. It started at 1 am and ended up at 4 am. I was sleepy by the end of it. Not that I mind. :) I would love to take part in more contests like this, and improve my level and skills. And I'm now candidate master: 1645. Which is the TopCoder equivalent of Division 1 in my first contest, which is... good, I suppose?
Also, quick question to the admins: is there a way by which I could set up questions / test them / write editorials for the judge?
Keep up the good work, guys!
Interesting
https://ideone.com/1vT6q7
Editorial coming later
"Later"
Soon™
14'? Have we traveled back in time?
DMOPC'14 represents the 2014-15 school year.
Oh, I see.
TSS IS READY
Can this start at 4:30 or some time around that? Some schools end later, and it's hard to compete when there's one hour less for some contestants.
This is the last contest of the school year. In the summer months, it is possible (and perhaps likely) that we'll run the DMOPC as a virtual contest.
This question is asked about once every DMOPC. Unfortunately, there are good reasons for the starting time and it will not be changed.