How do I win a CodeChef Goodie?
I want to know how can I get a CodeChef goodie? In which monthly contests, how many goodies are given? Does CodeChef also give certificates to the winners?
View ArticleHow to solve SPOJ GOODG?
I was solving questions related to convex hull trick then I got stuck at this one https://www.spoj.com/problems/GOODG/ but the lines will not be sorted, of course. So, I tried to to implement a Li Chao...
View ArticleMXDIST - EDITORIAL
PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Bogdan CiobanuTester:Xiuhan WangEditorialist:Taranpreet SinghDIFFICULTY:HardPREREQUISITES:Convex Hull, Rotating Calipers, Range Minimum...
View ArticleBrief Editorials ICO Preparatory Mega Contest ICOP1904
As @mgch quoted here, who am I to contradict him. So, I am presenting you the brief editorials for ICO Preparatory Mega-Contest. Hoping you all guys had fun in this contest. Here we go!SHIVIGODFor...
View ArticleWhy aren't practice links activated immediately after the contest is over?
I badly want to test my solution to a problem in ALOHOMORA. I cannot imagine any reason why practice links cannot be activated immediately after the contest is over.
View ArticleSnackdown T-shirts?
When will they be sent? Will they be sent according to address on codechef profile? Do I only need to fill the address and wait? (BTW what language should i use in the address) Thanks!
View ArticleYVNUM Editorial
PROBLEM LINK:PracticeContestAuthor and Editorialist:Hussain Kara FallahTester:Michael NematollahiPREREQUISITES:NONEPROBLEM:Given a decimal integer $N$ (with no zeroes at all even as intermediate...
View ArticleShivigawdz ICOP1904 Debugging
I cannot understand what is wrong with my code here. I have applied sliding window algorithm over a range of possible length say k belonging to [A,B]. I just don't understand where I went wrong. Please...
View ArticleHow to take input from user in multiset in C++. Following in not working....
while ((N--)!=0 && cin>>input) multiset1.insert(input);
View ArticleCARVANS - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYCAKEWALKPREREQUISITESSimple MathPROBLEMThere are N cars on a narrow road that are moving in the same direction. Each car has maximum speed. No car can overtake...
View ArticleWhat is the meaning of pairwise distinct integers?
I am a newbie on Codechef. Any help will be appreciated :) If it is given in the problem statement that : "All elements of the given array are pairwise distinct, does it mean that all the elements of...
View ArticleHelp in a question
You are given N segments on the x-axis. You should partition them in at most k sets. For each set, we define its cost as the length of the intersection of the segments in the set. Find the partition...
View ArticleHORSES - Editorial
PROBLEM LINK:PracticeContestDIFFICULTYCAKEWALKPREREQUISITESSorting, Quick SortPROBLEMYou are given a list of integers. Find the pair of integers whose value is closest among all the pair of integers in...
View ArticlePhilosophers Stone - Editorial
Problem Link : LinkAuthor : Shivansh AgarwalTester : Ritesh GuptaEditorialist : Ritesh GuptaPre-Requisite : None Problem : You are given an unsorted array of integers. You have to find that all the...
View ArticleALORA3 - NZEC with Python
I am facing a problem with the Prisoner of Azkaban problem. This is my solution. It has been written in Python 3.x . Its getting NZEC. Can anyone point out where am I going wrong? The weird part is...
View ArticleHow to prepare for Google HashCode?
What are the subject areas/topics that Google HashCode focuses on? Can you please specify the algorithms that one should focus on and some resources where one could practice for this contest? Which...
View ArticleHelp understanding a question in the current cook-off
Hello everyone. This is a question of the ongoing January Cook-Off 2019. I do not need any hints for the answer, I just need some clarification for the question. I have asked the relevant doubts in the...
View ArticleDoubt related to a Dynamic Programming problem!
I sincerely hope, that this question does not belong to any ongoing contest : D @aryanc403If it does, please don't answer this question :)We are given integers,namely, a,b,c and d. Also,...
View ArticleBug in UI of CodeChef !!
I accidentally set my profile picture to a image which is long in height. I clicked on Additional Information in Profile Edit section and now I cannot change my profile picture,Personnel and...
View ArticleBrute force with tc O(n^3) works?!That too in a contest?
Is there really no other efficient approach other than brute force for this problem? Because brute force seems to be working just fine for that kind of input.
View Article