yash_daga's blog

By yash_daga, history, 2 years ago, In English

We invite you to participate in CodeChef’s Starters134, this Wednesday, 15th May, rated for till 6-Stars(ie. for users with rating < 2500).

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

One of the problems of this contest was also used in Code Mania Blitz, ancc IITD contest, so if you participated in that contest, please refrain from participating.

Joining us on the problem setting panel are:

Note: Some problems have subtasks

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!

  • Vote: I like it
  • +63
  • Vote: I do not like it

»
2 years ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

C++23 when

»
2 years ago, hide # |
 
Vote: I like it +18 Vote: I do not like it

How on earth have so many people solved COUNTRBS? My solution is to notice that at most one good RBS starts at each position (namely, it ends at the next occurrence of the same prefix sum if all prefix sums in between are greater) and hash all O(n) substrings, but I think the observation part is too hard for most 5* coders.

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +3 Vote: I do not like it

    I think it's scoreboard effect and the fact that you don't need to think about prefix sums. Simply find matching brackets in the string (as the string itself is a regular bracket sequence), and use your favourite way to compare two substrings.

»
2 years ago, hide # |
 
Vote: I like it +1 Vote: I do not like it
why WA in 3in1out
»
2 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Boring Contest ever

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Very bad contest, question were some variation of standard problems. ( div2B or div2C)

Also there is issue with cc contest timer, i had 7 minutes remaining acc. to timer but when i submit my code it displayed time over.

this happend multiple times, resulting in me losing rank.

please fix it :(

»
2 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

why there is only one sample case. If you are so insecure of people guessing the solution by looking at test cases than why create such guessable problems

  • »
    »
    2 years ago, hide # ^ |
     
    Vote: I like it +18 Vote: I do not like it

    In case you are talking about Permutation Cycle Queries.

    My Opinion
»
2 years ago, hide # |
 
Vote: I like it +18 Vote: I do not like it

In PRISON it should be made more clear what to output when there are no prisoners or guarenteed that there is at lease one prisoner. I chose some random negative values and got WA first.

»
2 years ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

Great Problemset. I learned alot.

»
2 years ago, hide # |
 
Vote: I like it +8 Vote: I do not like it

3outin1 had me..loved this one

»
2 years ago, hide # |
Rev. 2  
Vote: I like it +8 Vote: I do not like it

What a creativity in writing countRBS problem, really awesome. I mean doable with both string hashing and tree hashing

»
5 weeks ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

are these both questions same?

https://mirror.codeforces.com/contest/1926/problem/C && https://www.codechef.com/problems/OG

this is accepted in codechef

ll n; cin>>n;
ll r = n%9;
ll ans = (n/9)*45;
ans+=(r*(r+1)/2);
cout<<ans<<"\n";

but same code is not working for 1st test case in CF.

yash_daga IceKnight1093

  • »
    »
    5 weeks ago, hide # ^ |
     
    Vote: I like it +3 Vote: I do not like it

    those are different questions

    in codechef u need to perform ops until its reduced to single digit

    whereas in codeforces one u have to perform only once cause its asking sum

    for eg: for 499

    in cf u need to find 4+9+9=22 in cc one it will be 1+9+9=22=2+2=4

    so yes they are diff questions