abhi2402's blog

By abhi2402, history, 5 years ago, In English

Hello Codeforces!!

I, on behalf of Code Chronicles 1.0 Team, would like to invite you to take part in first ever contest hosted by collaboration of IIIT's (IIIT Pune & IIIT Bhopal), which will take place on Friday, June 19, 2020 at 20:00 ISTUTC+5.5. It is a 2.5 hr long contest. The contest will be open to everyone. We'd be offering you 8 problems with varying difficulties.

PRIZES : 250 Codechef Laddus each to Top 3 Global & Special Goodies for Top 3 IIIT ians.

Contest Link : Code Chronicles 1.0

I would really like to thank:

I hope you will enjoy solving the problems. Please give your feedback on the problem set in the comments below, after the contest.

Upd 1: Editorials have been published for all problems except PWCP-COCR101, which will be published by tomorrow.

Upd 2: Editorial for PWCP has been published. You can check it out below.

Upd 3: Prizes (250 Laddus) have been credited. Congratulations to the winners!

  1. uwi
  2. Egor
  3. BohdanPastuschak

Top IIIT ians :

  1. aneesh2312
  2. sudoBug
  3. agrawal117

Editorials :
Marking the borders-COCR104
Champak and Clocks-COCR105
Sharing is Caring-COCR106
Chef and a New Home-COCR103
Odd One Out-COCR107
Time Travel-COCR102
Maze Runner-COCR108
PWCP-COCR101

About the discrepency in Marking the borders question :

There was a discrepancy in one of the input files for the question, Marking the borders. There was a single line missing in the input file. Even then many participants got accepted, but some received WA or TLE. It was a bit surprising about how had it not come up during the testing phase, but after reviewing a couple of solutions which didn't get accepted because of this, we observed that codes using $$$scanf$$$ were getting affected. Unfortunately even though all testers had tested this question, everyone used $$$cin$$$ / $$$cout$$$. We still don't know for sure that if $$$scanf$$$ / $$$cin$$$ thing was the only difference that lead to such a result. Sorry for the inconvenience caused due to this.

We still hope that you enjoyed the problemset though, and thank you for participating!!

  • Vote: I like it
  • +42
  • Vote: I do not like it

| Write comment?
»
5 years ago, # |
Rev. 3   Vote: I like it -51 Vote: I do not like it

Deleted

»
5 years ago, # |
  Vote: I like it +6 Vote: I do not like it

The contest begins in less than 10 minutes!

»
5 years ago, # |
  Vote: I like it +21 Vote: I do not like it

I am eager to know the solution to the problem Odd one out, i tried using bitset + BIT using xor like think but it was giving TLE .

  • »
    »
    5 years ago, # ^ |
    Rev. 2   Vote: I like it +8 Vote: I do not like it

    Segment Tree and bitset gave AC for 0.5 second :-0

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +34 Vote: I do not like it

    Well, I solved it using your approach but included few pragmas to speed it up significantly!

    Code
  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    The idea was to use bitset and segment trees. However I think BIT + bitset should also work fine with small optimizations. You can have a look at the editorial to get a better idea. https://discuss.codechef.com/t/editorial-odd-one-out-cocr107/69314

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      Yeah BIT + biset works fine without any optimization, but my solution was stupid that's why i was getting TLE. Now it works fine in just 0.24. Thanks to you and YouKn0wWho for his nice & clean solution.

»
5 years ago, # |
  Vote: I like it +13 Vote: I do not like it

Cool problems! How to solve Maze Runner?

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    I tried using meet in the middle but got TLE, btw nice problems!

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it +41 Vote: I do not like it

      Your comment has both the key points necessary to solve this question. Meet in The Middle + Trie. xD abhi2402 the Comment section needs you!

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      It was indeed meet-in-the-middle + Trie.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    I thought of using meet in the middle approach with tries to count ways but it was too much to implement :(

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    I solved it using meet in the middle and binary search to find the possible combinations.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +32 Vote: I do not like it
    meet in the middle
»
5 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Please unlock solutions

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Yes, I have made the solutions public, it will take some time to reflect on the website.

»
5 years ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

The editorial for Maze Runner(COCR108) is out. Link

»
5 years ago, # |
Rev. 2   Vote: I like it +2 Vote: I do not like it
»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Please enable the submit button of each question.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    We have asked Codechef to move the questions to practice section as soon as possible. Although it may take some time to actually reflect on the website. Thankyou for your patience.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    UPD: All problems have been moved to practice section. You can submit them now.

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

scanf/cin was not a problem imo, because my solution got WA with cin.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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