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

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

We invite you to participate in CodeChef’s Starters 166, this Wednesday, 25th December, rated upto 5 stars (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!

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

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

Is this rated up to 5 or 6 stars? Website says 5.

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

Reminder: The contest will start in an hour.

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

Very Strict Time Limits in All Equal , Nice Problems :) for a change

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

almost all questions were GPTable. Poor contest.

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

Screencast of me writing this round in rust

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

Every single person in the top 25 of div2 has used GPT. This is just pathetic.

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

In the hard version of divisors I didn't noticed that I used map and an extra log(M) factor gave me TLE for 4 times. :(

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

Why did my submission for Divisors Array(Hard version) give TLE? I think it is within the limits of the constraints.

Link: https://www.codechef.com/viewsolution/1117737372

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

Codechef please take this opportunity to go through the code of top 100 of div1 and div2 and ban the people who has GPT code. If you guys are not capable of doing that then unrate this contest. Great way to catch a lot of losers.

»
16 месяцев назад, скрыть # |
Rev. 5  
Проголосовать: нравится +24 Проголосовать: не нравится

Lol. What a joke. Ratings updated with gpt users at the top. Dominater069's math puzzles is better than this shite. Atleast that was GPT proof.

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

What sorcery was DPOWER? caught me off-guard completely. Do you recommend any other similar style problems to better develop an intuition for these? Thanks for the contest!

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

I am unable to understand why I am getting run time error for Costly Permutation (COSTPERM)

Link: https://www.codechef.com/viewsolution/1117884655

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

For problem Divisors Array (Hard Version) I had to use segment trees here. I thought to use persistent segment trees but it was an overkill maybe.

For any number till 1e7 there can be max log2(1e7) around 25 different primes so I update only 25 elements in the segment tree get the answer and re-update the segment tree as it is which is (a+1)*(b+1)*... where a,b,c etc are primes for M! and then a change of max 25 for each element. So total TC = (25 * log2(MAX M) * N) which is 580 something for each 1e5 element should get AC.

Is there any easier way to do this rather than segment trees?

PS: I can't see solution on codechef for obvious reasons.

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

    you can simply multiply updated (a+1) and use modInverse to divide with old (a+1).

    Here let M!= p1^a . P2^b ......

    so number of divisor of M!=(a+1)*(b+1)....

    now let arr[i]=p1^c . p2^d.....

    so res=(a+1)*(b+1)*(a+c+1)*(b+d+1)/((a+1)*(b+1))

    but u need to use modInverse to divide here