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

Автор Deemo, 5 лет назад, По-английски

Greetings Codeforces community!

CodeChef brings you its last contest of the month, Lunchtime. And everyone's invited! The June Lunchtime 2019, sponsored by ShareChat, is a 3-hour contest and will present you with 5 problems to test your coding abilities.

ShareChat — India’s fastest growing social network — is hiring for full-time and internship roles, and participants of the June Lunchtime will have a chance to apply for these exciting opportunities. Visit the contest page for more details.

We are on the hunt for a Mandarin Translator to help translate problem statements for our monthly contests. This will be a long-term commitment with translations required thrice a month. If you think you are up to the task, then do get back to us at [email protected].

Additionally, if you have some original and interesting problem ideas, and want them to be used in CodeChef's contests, you can share them here: www.codechef.com/problemsetting/new-ideas

I hope you will join your fellow programmers and enjoy the contest problems. Joining me on the problem setting panel are:

  • Setters: MladenP (Mladen Puzić), hackslash_123 (Raj Khandor)
  • Tester: Deemo (Michael Nematollahi)
  • Editorialist: taran_1407 (Taranpreet Singh)
  • Statement Verifier: Xellos (Jakub Safin)
  • Mandarin Translator: huzecong (Hu Zecong)
  • Vietnamese Translator: Team VNOI
  • Russian Translator: Mediocrity (Fedor Korobeinikov)
  • Bengali Translator: solaimanope (Mohammad Solaiman)
  • Hindi Translator: Akash Shrivastava

    Contest Details:

  • Start Date & Time: 29th June 2019 (1930 hrs) to 29th June 2019 (2230 hrs). (Indian Standard Time — +5:30 GMT) — Check your timezone
  • Contest link: https://www.codechef.com/LTIME73
  • 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 Indian and top 10 Global school students from ranklist will receive certificates and CodeChef laddus, with which the winners can claim cool CodeChef goodies. Know more here: https://discuss.codechef.com/t/how-do-i-win-a-codechef-goodie/7344. (For those who have not yet got their previous winning, please send an email to [email protected])

Good Luck!

Hope to see you participating!!

Happy Programming!!

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

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

Editorials for all problems have been posted and can be found at https://discuss.codechef.com/tags/c/editorial/ltime73

Hope you guys had a nice contest.

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

In problem Igzi and Burly Array I have used dsu. Can someone find what is wrong in my code

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится
    This might work
    • »
      »
      »
      5 лет назад, # ^ |
      Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

      You only changed this line of code in the second query

      parent[r] = par(r);

      to

      ll foo = par(r);

      parent[r] = foo;

      I really can't figure out how is it making a difference

      EDIT I got it. When I wrote parent[r] = par(r) then r got inserted in the map and it never went into the first if statement and the default value was 0. SO 0 was returned for every ind. Right??

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

Thank you guys for participating. Hope you had a fun time!