We invite you to participate in CodeChef’s Starters 163, this Wednesday, 4th 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:
Contest Admin: Yash yash_daga Daga
Text Editorialists and Statement Verifier: Nishank IceKnight1093 Suresh
Tester: Manan mexomerf Grover
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!
BUMP
Contest starts in about 40 mins
hopefully it wont be a bunch math puzzles.
virtual memory exhausted: Cannot allocate memory what's going on ? i keep getting this error
In which problem? and what's the language you're using? Usually you get this if code is using more than 1.5GB of the default available memory.
Nah bro MLE i understand but i'm getting compile error and the same code passed after trying 2-3 times
The problems were very good today.
variables in tree sum question was given in wrong order to what is mentioned.
good problems today !
For Nice Array problem, I tried the same approach kind of approach in c++ which was given in the editorial. Strangely, it was giving a wrong answer. Why is it so? I made sure to use ceil division (x+k-1)/k to calculate the ceil of the number!
Did you use the in-built C++ ceil function?
no I used (x+k-1)/k.
Does your formula work if x is negative? Or maybe it overflows?
Are you sure that works fine for negative numbers say A[i]= -4 and k= 3 according to your ceil function it will be 0 but it should be 1.
or maybe i am wrong
You don't even need to use any ceil division. See my submission
I think I got confused with the definition of ceil and floor division for negative numbers. Thanks for your suggestion.
debug my code is not working !