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

Автор SkyWalkerPS, история, 13 месяцев назад, По-английски

Hello World!

Whether you're a beginner, a pro, or somewhere in between, Coding is always for everyone. No //comments about it, so let’s spice things up with a coding contest. Coding Club NIT Silchar brings you Code Cauldron — Brew Your Code under the flag of our coding week TownHall, to develop your coding, real problem-solving abilities, and experience worth remembering.

The coding competition is open to all undergraduate programmers in India, although everyone is encouraged to participate in it. Top 3 teams will be eligible for prizes, from prize pool of 6K.

Rules:

  • A team of 1-3 members from the same college is required to participate in the contest.

  • Each team member must fill the g-form attached with the post, failure to do so will result in the team's disqualification.

  • A team must be created in Codeforces comprising of the members.

  • Each participant must have a Codeforces account.

Registration and Contest Link:

Click on this link to register yourselves. You won't be considered an official participant if you don't register here. You also have to register in the Codeforces contest for taking part.

https://forms.gle/Pts8GmzDWTd6UGMB6

Contest Time: 24th March 2023 at 21:00 IST.

Contest Link:

Click on the link below to take part in the contest. Registration for the contest will start 6 hours before the contest.

https://codeforces.com/contestInvitation/cac71a7a24a6d0ad11bfc282604d10312473d1f0

Upd: Registration on Codeforces has been started. Do it asap.

Upd: Author's solution for Problem A was wrong. Sorry for the inconvenience caused, We will announce the results after rejudging all the submissions. Thank you.

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

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

Excited for the contest!

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

Fingers crossed!

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

Best of luck to all the participants!

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

Very much excited for the contest.

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

Excited!!

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

Excited!!!

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

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

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

Very much excited!

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

Is registration in Google form necessary for the prize

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

Excited!!

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

All members have to fill the google form ? SkyWalkerPS

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

Is the model solution of A correct?

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

How to solve B ?

Can anyone please share their submission, it's not visible rn.

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

    Same question. Is there some standard technique to calculate nCr mod p where n,r if of the order of 1e6 and p is not prime of order 1e9?

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

    First of all answer for $$$i$$$ heads is $$$n \choose i$$$. You can write it as $$$\frac{n!}{i! \cdot (n-i)!}$$$. Now our idea was to prime factorize it. So we move from $$$i=0$$$ to $$$n$$$ and maintain the track of power of all prime numbers till $$$n$$$. You can use segment tree to calculate the product of all elements after each update.

    Submission

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

      I like your idea, thanks. I think it can be used in general too.

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

    cp-algo describes a method using CRT which probably isn't too hard to implement.
    In practice, if you have internet access the fastest way is to just take code from yosupo.

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

H is pretty much a direct copy of this problem, down to the wording used :(
It's minimum instead of maximum but that isn't a meaningful difference.

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

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

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

piyusheverhard please share your A?

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

A was dp or did i miss something?

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

Thanks a lot for wasting everyone's 2 hours. spent the whole contest trying to debug A :)

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

    Same here!

    We should have moved to G but ended up wasting our time on A.

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

    I wrote a naive solution. I was sure that the model solution was incorrect. I even made a clarification but received no response.

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

"Sorry for the inconvenience caused" — Yeah no problem, We only spent half the contest trying to see what's wrong with our A, not like it would've changed the standings much...

»
13 месяцев назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится
»
13 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

is D dp?

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

AC solution of B is giving a compilation error on my system. In line 108, 1i is written (I copied the template), and that is probably causing the error. Is it because of a lower version of C++ installed on my system or is there some other issue?