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

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

We invite you to participate in CodeChef’s Starters 102, this Wednesday, 27th September, rated till 6-stars (ie. for users with rating < 2500).

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

Read about the recent judge migration here.

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!

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

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

Text editorial are also for pro users only?

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

Light The Bulb was identical to recent problem from Hackerearth September Circuits. Link

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

    Thanks for pointing this out. We are looking into it, and will update.

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

      It was indeed a Notorious Coincidence. We apologize for the oversight. The proposer has been banned from the platform.

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

What does exactly mean in problem C?

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

    You have to do 2 moves,no more no less even if the strings are equal initially.

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

    Casework: At the position where t[i]!=s[i], we have to definitely apply a single operational and at the position where characters are equal, we can apply no operational or two operations. Consider 1 when t[i]=s[i] otherwise 0. Then count the number of continuous 0 and 1. Let them be c1 and c2 then:

    x=total number of 1 and y=total number of 0

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

Can anyone tell my mistake in this code for " Chef Segment " problem

https://www.codechef.com/viewsolution/1023144006

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

My solution to problem Array Sum relied on taking the max element if possible starting from 1e5, regardless of value of N. I expected it to TLE, if there are lot of tests with small value of sum required. Wherein, I will start from 1e5 in each one of them. But my solution got Accepted. Can someone explain why this works or are the test cases weak?

Edit : I think it passed because there are only 1000 test cases max. If there were more, I expect it to TLE, at least with strong tests cases.

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

Really enjoyed the problem set today.CHESSELO was so cute.Magnus orz.

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

Loved Parity Permutation.