ideone and code compile run
Ideone and code compile run are giving me different answers for same code, where ideone is giving me right answer and code compile run is not. submission gives me wrong answer and sigsegv. where am i...
View ArticleWDTBAM - Editorial
Problem LinkPracticeContestDifficultyCakeWalkPre-requisitesBasic programming language constructions ProblemFind the maximal value of the profit for playing a single-player game described in the problem...
View ArticleCLOST - Editorial
PROBLEM LINKPracticeContestAuthor:Amit PandeyTester:Pushkar MishraEditorialist:Prateek GuptaRussian Translator:Vitalij KozhukhivskijVietnamese Translator:Khanh Xuan NguyenMandarian Translator:Gedi...
View ArticleSPOJ - Problem AGGRCOW - Aggressive cows
I cannot understand how binary search will solve the problem.Problem statement is hereNeed Help! Thanks :)
View ArticleGDOG - Editorial
PROBLEM LINK:PracticeContestAuthor:Pavel SheftelevichTester:Vlad MoskoEditorialist:Pawel KacprzakDIFFICULTY:CAKEWALKPREREQUISITES:Simple mathPROBLEM:You have $N$ coins. You are about to call any number...
View ArticleMSTEP - Editorial
PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Kevin AtienzaEditorialists:Pushkar Mishra and Suhash VenkateshDIFFICULTY:CakewalkPREREQUISITES:NonePROBLEM:Given is a grid of size $N \times N$. It...
View ArticleTypeError:'int' object is not iterable.
I was trying a code in python.I already did it in c++. but it keep showing me error - IDEONEThere's no problem with the logic(the same algo worked in c++)There's some problem with my python...
View Articlecan't figure out missing corner cases
I have this question from a past contest that i participated in. I just can't figure out what corner cases am I missing out on as two of the test cases ain't giving correct answers. Plz help. Problem...
View ArticleLUCKY LAND LOTTERY EDITORIAL
https://www.codechef.com/problems/WINNERWhat is the appropriate way to solve this question, I solve this question using circular linked list(Deleting all the alternate elements untless one element...
View ArticleBest Possible Solution
I have a n*m Matrix filled with non negative integers. I need to find the maximum sum of the numbers selected such that no two share the same row or column.What is the best possible solution to it?
View ArticleRuntime Error in CHAPD problem
I am not able to understand why my code is getting accepted for some subtask and showing runtime error(NZEC)fo some.Pls...help [Here is the link to my code][https://www.codechef.com/viewsolution/8947340]
View ArticleBUY1GET1 - Editorial
Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:Ad-hocProblem:You are given a set of jewels of different colors that you need to purchase. Buying a jewel of color k makes you eligible to...
View ArticleBRACKETS - Editorial
Problem Link:contest, practiceDifficulty: CakewalkPre-requisites: BasicsProblem:Given a valid parentheses sequence A. Your task is to find another valid parentheses sequence B with the minimal possible...
View ArticleNOKIA brute force code
I was trying to solve the qstn https://www.codechef.com/problems/NOKIA i deduced recursive relation as in editorial but i can't code please help me by giving pseudo code of brute force method
View ArticleWAYPA - Editorial
PROBLEM LINK:ContestPracticeAuthor:Fedor KorobeinikovTester:Sergey KulikEditorialist:Kevin AtienzaPREREQUISITES:String hashing, polynomial hashing, tree centroid decomposition, binary...
View ArticleCHEFST - Editorial
PROBLEM LINK:ContestPracticeAuthor:Tapas JainTester:Sergey KulikEditorialist:Kevin AtienzaPREREQUISITES:Arithmetic series, greedy, ad hocPROBLEM:Consider a single-player game on two piles of stones....
View ArticleORACLCS - Editorial
PROBLEM LINK:ContestPracticeAuthor:Praveen DhinwaTester:Sergey KulikEditorialist:Kevin AtienzaPREREQUISITES:longest common subsequencePROBLEM:You are given $n$ strings, each of length $m$ and...
View ArticleDYNAINV - Editorial
Problem link : contestpracticeDifficulty : SimplePre-requisites : Basic MathProblem : Maintain the number of inversions in the permutation (modulo 2), while performing swap operations.ExplanationAt...
View ArticleHugphile Order- ACM ICPC Amritapuri Regionals 2014
Can anyone tell me the approach to solving this question or explain what has been done in given solutions? Thanks.
View ArticleLinks to Upcoming Cook-Off and Challenge are Wrong
The upcoming December Cook-Off 2015 is COOK65, but clicking the December Cook-Off link under "Compete" leads to COOK66, the January Cook-Off 2016. Also, the January Challenge link is JAN15 when really,...
View Article