Greetings Codeforces Community!
We invite you to participate in Code Ensemble, running this Wednesday, 19th August, from 9:00 pm — 11:30 pm IST. The contest is hosted by DotSlash Community of Indian Institute of Information Technology, Nagpur.
The contest features 7 problems of varying difficulty and is 2.5 hrs long. The contest is Rated for Div. 2 on Codechef. However, Division 1 users can participate unofficially in this contest. That is, Division 1 users will be able to submit in the contest, but will not feature in the Live ranklist, and nor will their rating be affected.
The problems in this round are prepared by Aman Retired_cherry Dwivedi, Arun qazz625 Das, Sarthak sarthak_eddy Shukla, Saurabh saurabhyadavz Yadav.
Huge thanks to:
- Jatin jtnydv25 Yadav for being the round coordinator on behalf of Codechef and also for an initial review of the problem ideas.
- Jatin nagpaljatin1411 Nagpal for high-quality testing and valuable advices.
- CodeChef Team for their invaluable help and great platform.
We hope u'll have an amazing time. Good Luck & Have Fun!!!
UPD: The contest time has been extended by 30 minutes, now the contest will last for 2 hours 30 minutes (21:00 — 23:30 IST)
Auto comment: topic has been updated by Retired_cherry (previous revision, new revision, compare).
people! this is exciting okay! cool period.
Finally the long wait is over. Excited for the round.
Love the contests organised by the community. Eagerly waiting for this one too!!
Auto comment: topic has been updated by Retired_cherry (previous revision, new revision, compare).
Auto comment: topic has been updated by Retired_cherry (previous revision, new revision, compare).
Reminder: Contest starts in 15 minutes.
How to solve Priya and Parity?
Just solve for odd and even components beforehand (answer_of_odd and answer_of_even )and at the time of query,
if popcount(K) is odd : for odd print answer_of_even and for even print answer_of_odd else : reverse of above
Thanks man :) But now I'm feeling so stupid :(
Welcome , It happens quite often .. I was also stuck on third problem today which was extremely easy .
Can you please tell why while creating adjacency list we need to check for equal number of set bits in both u and v? I saw many solutions , did everything same apart from that got WA.
Its not equal but same pairity .. As mentioned in the question the connected subgraph must be reachable from each other node and if there is a different pairity it blocks the path and therefore disconnects it..
A group of cities is said to be connected if we can go from one city of the group to any other city of the group without passing through any city that is not in the group. A group with one city is considered as connected. Are you referring to this?
Yup
Refer to editorial.
Yeah .. quite fast editorial
Please also share the editorial for Problem code B
Will post the editorial by tomorrow. Sorry for the inconvenience, but problem B was not prepared on time.
Ohkk...Thanks
Almost Identical Problem
Cherry and Pyramid was much easier than it looks by the number of solve.
Enjoyed the contest ......how to solve Cherry and Bits, i tried in O(q*N) but time limit had been exceeded
It is a kind of prefix sum in 2d array which can be done as:
grid[I][j]=grid[i-1][j]+grid[I][j-1]-grid[i-1][j-1]
You can check my submission here
Please find the editorials here. :) Edit — What the hell is the problem with the community. What is the reason of downvotes? Is it because of how a specialist made a question in contest or it's just the mentality that a specialist can't do anything?
Only that problem is missing LOL
Apology for the delay I will be posting it in few hours.
Update: Posted