Hello CodeForces Community!
After serving the lip smacking August Long Challenge, CodeChef is back with August Cook-Off 2017 (https://www.codechef.com/COOK85)! Hop on for five challenging problems and 2.5 hours of rigorous programming!
Joining me on the problem setting panel are:
- Problem Setters: Melnik (Daniil Melnichenko) and hloya_ygrt (Yura Shilyaev)
- Problem Tester: kingofnumbers (Hasan Jaddouh)
- Admin: kingofnumbers (Hasan Jaddouh)
- Editorialist: Melnik (Daniil Melnichenko) and hloya_ygrt (Yura Shilyaev)
- Russian Translator: Melnik (Daniil Melnichenko) and hloya_ygrt (Yura Shilyaev)
- Mandarin Translator: huzecong (Hu Zecong)
- Vietnamese Translator: VNOI Team
- Language Verifier: (Priyank jaini)
I hope you will enjoy solving them. Please give your feedback on the problem set in the comments below, after the contest.
Now, without further ado, please allow me to share the contest details with you real quick:
Time: 20th August 2017 (2130 hrs) to 21st August 2017 (0000 hrs). (Indian Standard Time — +5:30 GMT) — Check your timezone.
Details: https://www.codechef.com/COOK85
Registration: You just need to have a CodeChef handle to participate. For all those, who are interested and do not have a CodeChef handle, are requested to register in order to participate.
Prizes: * Top 10 performers in Global and Indian category will get CodeChef laddus, with which the winners can claim cool CodeChef goodies. Know more here: https://www.codechef.com/laddu. (For those who have not yet got their previous winning, please send an email to [email protected])
Good Luck! Hope to see you participating!!
The contest has just started!
What is wrong in my approach for B ?
Basically I am checking if a and b are in the diameter , if they are not then I'm adding all points in the minor arc . For the major arc I am finding the point which subtends 90 degree at a or b . This point should be at the other side of diameter from a or b .
I think you shouldn't be counting any points on the major arc. The answer is just minor-1.
Why is it so ? , The obtuse angle can be at vertex A or B right ?
FML I thought that the triangle should be obtuse :(
It is this simple.
How to solve that game problem ?
It looked very easy, but it probably has a lot of edgy cases.
Lots of casework. Easily my least favorite problem of all time :P
Do you know if it is possible to see on what test did my code fail?
No, but you can try running your code against mine on 1000 testcases with n ≤ 10 and see where they differ.
How can I do that?
Thanks :)
We tried our best haha
Is it possible to see the tests on Codechef?
No.
Hint for Tree Connectivity?
Iterate over the vertices in order of their labels, and use a lazy segment tree to determine the number of possible R's for a certain L. In my opinion, this was much easier than "Game on a Stick."
How to determine the number of possible R's for a certain L? Can you explain little bit more?
As mentioned in the editorial, keep track of the number of missing edges for each R value.
I think this is the First Cook off to get above 3000 participants ! Wow!