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

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

We invite you to participate in CodeChef’s Starters 195, this Wednesday, 16th July, rated for 5 star (i.e. for users with rating < 2200).

Time: 8:00 PM — 10:00 PM IST

Joining us on the problem setting panel are:

Written editorials will be available for all on discuss.codechef.com. Pro users can find the editorials directly on the problem pages after the contest. The video editorials of the problems will be available only to Pro users.

Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here. Hope to see you participating.

Good Luck!

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

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

Contest starts in ~30min.

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

codechef ❌ cheater's den

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

    Sad to say, but most Indians on platforms like LeetCode, Codeforces, and CodeChef are cheaters — just chasing ratings and badges instead of actually learning. I'm Indian too, but this is the truth.

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

Solved Game Hard Version with binary search but what's the proof of monotonicity?

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

I tried solving Game(easy) using recursive dp, but got TLE

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

I am not sure why my solution to last problem is giving TLE. My code ran about 5 sec, in local editor. I did same idea mentioned in editorial, (NTT convolution, binary exponentiation on polynomials — optimizing by trimming the polynomial to degree N, cayley formula)

Can someone please look at my submission, and suggest any optimizations.
Codechef Submission