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

Автор likecs, история, 7 лет назад, По-английски

Hello Codeforces community,

Get ready for an exciting Sunday action your way.

This Sunday, 17th September, from 9:30pm to 12:00am (IST) Codechef is organising Mega Cook off for ICPC aspirants from around the world.

The panel for the contest consists of :

  • Problem Setter and Editorialist : likecs(Bhuvnesh Jain)
  • Problem Tester : kingofnumbers(Hasan Jaddouh)
  • Admin : kingofnumbers(Hasan Jaddouh)
  • Russian Translator : CherryTree(Sergey Kulik)
  • Mandarin Translator : huzecong(Hu Zecong)
  • Vietnamese Translator : Team VNOI
  • Language Verifier: (Priyank jaini)

I would also like to thank Codechef team and Praveen Dhinwa (PraveenDhinwa) for help in preparing the contest.

Hope you will enjoy solving the problems. The editorials with the model solutions will be available right aafter the contest. Please give your feedback on the problem set in the comments below after the contest.

Please find the rest of the details about the contest below.

Time: 17th September 2017 (2130 hrs) to 18th September 2017 (0000 hrs). (Indian Standard Time — +5:30 GMT) — Check your timezone.

Details: https://www.codechef.com/COOK86

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 school students each from 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 winners@codechef.com).

In addition to the above prizes, top 50 Indian students will get their ACM-ICPC expenses reimbursed. For more details refer here.

The main characters of the contest are Chef Dobby and Bhuvan.

Good Luck! Hope to see you participating!!

UPD 1: The contest starts in 25 minutes. Best of luck.

UPD2: The contest has started.

UPD3: The contest has ended. Congratulations to all the winners and also everyone who solved the complete problemset.

The global top 5 (also overall top 5) are :

  1. tourist (Special Congratulations for completely solving the contest in just 34 minutes).

  2. uwi

  3. RAVEman

  4. zeliboba

  5. I_love_Tanya_Romanova

The top 5 Indians are :

  1. jtnydv25

  2. saharshluthra

  3. gvaibhav21

  4. architkarandikar

  5. abisheka

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

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

Is Bhuvan a coder or a cricketer?

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

Should a guy with 1600 rating really be setting a whole contest ?

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

    See his rating on Codechef. Further, there are lots of people who do not perform very well in short time contests, but are great at maths and algorithms. Search him on wikipedia Darooha

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

      Why is his rating low if he is great in maths and algorithms ? He has participated in 53 rated contests till now. Maybe he should prepare long contests instead of short ?

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

      Did you just compare him with the inventor of link-cut trees ? xD

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

        No i'm not comparing him with the inventor of link-cut trees. I'm just stating that having a low rating doesn't imply that someone can't be a good problem setter.

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

    Should a guy with only 7 rated contests and a 1736 rating really be deciding who gets to set a whole contest?

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

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

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

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

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

I liked the problems!

Feedback:

LIKECS02, I didn't proved my solution just printed an array centered at n, and stressed for all possible cases.

LIKECS03, I confused the problem and solved it for xor instead of or! the or case is trivial

LIKECS04, Nice one, again I didn't had time to prove it, just generated all possible numbers in the final array and then dp.

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

Codechef Discuss forum is down a moment. Till the you can find all the contest material : problem statements, editorials, model solutions in c++, java and python, bonus problems for every question etc are available at https://github.com/likecs/COOK86 .

Hope you all enjoyed the contest.

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

How to solve the fourth problem? I had assumed an unproven claim that the product of gcd of the numbers in the array a[] and some power of 2 should be the sum of numbers in a[]. It somehow worked for all the examples I could come up with during the contest :P

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

    The proof will be available in editorial with worked out example. You can check the github link for it as codechef discuss is down for a moment.

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

For the fourth problem, I made dp[winning/losing][index][ sum ] , I chose k between 0 to b[index]. I found a pattern that whenever sum=3*(2^something)*k it will be a losing position else it will be a winning position.Surprisingly O( 50^4 ) is giving TLE. Was my approach right?

code

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

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

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

I must like contest where I solved one task before than all other participants :D

Nice tasks, for me contest was very interesting :)

I really want to know how many coders proved solution for the fourth task, I spent a lot of time to guess right condition and I didn't find it. Now a lot of contests have some constructive algorithms and some "guessing tasks" ( read AtCoder :P ) and I can not solve it in 90% of cases.

I know there is math behind it, but I think intuiton is more important here.