Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя Retired_cherry

Автор Retired_cherry, история, 4 года назад, По-английски

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)

  • Проголосовать: нравится
  • +6
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Retired_cherry (previous revision, new revision, compare).

»
4 года назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

people! this is exciting okay! cool period.

»
4 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

Finally the long wait is over. Excited for the round.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Love the contests organised by the community. Eagerly waiting for this one too!!

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Retired_cherry (previous revision, new revision, compare).

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Retired_cherry (previous revision, new revision, compare).

»
4 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

Reminder: Contest starts in 15 minutes.

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

How to solve Priya and Parity?

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +13 Проголосовать: не нравится

    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

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Thanks man :) But now I'm feeling so stupid :(

      • »
        »
        »
        »
        4 года назад, # ^ |
          Проголосовать: нравится +18 Проголосовать: не нравится

        Welcome , It happens quite often .. I was also stuck on third problem today which was extremely easy .

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      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.

      • »
        »
        »
        »
        4 года назад, # ^ |
        Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

        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..

        • »
          »
          »
          »
          »
          4 года назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          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?

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится -7 Проголосовать: не нравится

    Refer to editorial.

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится +13 Проголосовать: не нравится

      Yeah .. quite fast editorial

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится +13 Проголосовать: не нравится

      Please also share the editorial for Problem code B

      • »
        »
        »
        »
        4 года назад, # ^ |
        Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

        Will post the editorial by tomorrow. Sorry for the inconvenience, but problem B was not prepared on time.

      • »
        »
        »
        »
        4 года назад, # ^ |
        Rev. 2   Проголосовать: нравится +23 Проголосовать: не нравится

        Almost Identical Problem

        Code
»
4 года назад, # |
  Проголосовать: нравится +18 Проголосовать: не нравится

Cherry and Pyramid was much easier than it looks by the number of solve.

»
4 года назад, # |
  Проголосовать: нравится -8 Проголосовать: не нравится

Enjoyed the contest ......how to solve Cherry and Bits, i tried in O(q*N) but time limit had been exceeded

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

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?