Quantcast
Browsing all 39796 articles
Browse latest View live

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 Article


WDTBAM - 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 Article


CLOST - Editorial

PROBLEM LINKPracticeContestAuthor:Amit PandeyTester:Pushkar MishraEditorialist:Prateek GuptaRussian Translator:Vitalij KozhukhivskijVietnamese Translator:Khanh Xuan NguyenMandarian Translator:Gedi...

View Article

SPOJ - Problem AGGRCOW - Aggressive cows

I cannot understand how binary search will solve the problem.Problem statement is hereNeed Help! Thanks :)

View Article

GDOG - 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 Article


MSTEP - 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 Article

TypeError:'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 Article

can'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 Article


LUCKY 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 Article


Best 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 Article

Runtime 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 Article

BUY1GET1 - 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 Article

BRACKETS - 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 Article


NOKIA 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 Article

WAYPA - Editorial

PROBLEM LINK:ContestPracticeAuthor:Fedor KorobeinikovTester:Sergey KulikEditorialist:Kevin AtienzaPREREQUISITES:String hashing, polynomial hashing, tree centroid decomposition, binary...

View Article


CHEFST - 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 Article

ORACLCS - Editorial

PROBLEM LINK:ContestPracticeAuthor:Praveen DhinwaTester:Sergey KulikEditorialist:Kevin AtienzaPREREQUISITES:longest common subsequencePROBLEM:You are given $n$ strings, each of length $m$ and...

View Article


DYNAINV - Editorial

Problem link : contestpracticeDifficulty : SimplePre-requisites : Basic MathProblem : Maintain the number of inversions in the permutation (modulo 2), while performing swap operations.ExplanationAt...

View Article

Hugphile 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 Article

Links 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
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>