SCRABBLE - Editorial
PROBLEM LINK:PracticeContestAuthor:Sergey KulikTester:Istvan NagyEditorialist:XellosDIFFICULTY:CHALLENGEPREREQUISITES:nonePROBLEM:You're playing Scrabble on a graph with limited information about tiles...
View ArticleRECRECOV - Editorial
PROBLEM LINK:PracticeContestAuthor:Maksym BevzaTester:Istvan NagyEditorialist:XellosDIFFICULTY:EASY-MEDIUMPREREQUISITES:Maximum flow.PROBLEM:You're given a directed acyclic graph. Find the minimum...
View ArticleREBTET - Editorial
PROBLEM LINK:PracticeContestAuthor:Yurii RebrykTester:Istvan NagyEditorialist:XellosDIFFICULTY:MEDIUM-HARDPREREQUISITES:Computing binomial coefficients, polynomial multiplication (fast Fourier...
View ArticleTREEP - Editorial
PROBLEM LINK:PracticeContestAuthor:Vsevolod StepanovTester:Istvan NagyEditorialist:XellosDIFFICULTY:MEDIUM-HARDPREREQUISITES:String hashing, heavy-light decomposition, lowest common ancestor,...
View ArticleTREEPATH - Editorial
PROBLEM LINK:PracticeContestAuthor:Sergey KulikTester:Istvan NagyEditorialist:XellosDIFFICULTY:HARDPREREQUISITES:Binary-indexed trees (BITs, Fenwick trees) with coordinate compression.PROBLEM:There's a...
View ArticleCHSTAMP - Editorial
PROBLEM LINK:PracticeContestAuthor:Evgenij ArtemovTester:Istvan NagyEditorialist:XellosDIFFICULTY:EASY-MEDIUMPREREQUISITES:Graphs - connected components.PROBLEM:You have $N$ stamps of different types...
View Articleruntime error sigsegv in pcycle problem
can anyone tell what is wrong in my code....https://www.codechef.com/viewsolution/8710955
View ArticleCHEFSHOP - Editorial
PROBLEM LINK:PracticeContestAuthor:Roman FurkoTester:Istvan NagyEditorialist:XellosDIFFICULTY:MEDIUMPREREQUISITES:Dynamic programming, bitmasking, greedy algorithms.PROBLEM:There are $N$ items and $M$...
View ArticleKFUNC - Editorial
PROBLEM LINK:PracticeContestAuthor:Eugene KazminTester:Istvan NagyEditorialist:XellosDIFFICULTY:CAKEWALKPREREQUISITES:nonePROBLEM:You're given a function $F(n)$ and many queries of the form: find...
View ArticleEGRCAKE - Editorial
PROBLEM LINK:PracticeContestAuthor:Egor BobykTester:Istvan NagyEditorialist:XellosDIFFICULTY:SIMPLEPREREQUISITES:Greatest common divisor.PROBLEM:We have a permutation $\texttt{P}[0..N-1]$ with...
View ArticleGrpah tutorials and blogs are highly welcomed.
hello everyone , i never solved any graph problem before and i want to start it now by reading some good tutorials or blogs for graph problems. If anyone knows good blogs or tutorials for graphs , plz...
View ArticleSMPLSUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Kirill ShchetininTester:Istvan NagyEditorialist:XellosDIFFICULTY:EASYPREREQUISITES:The sieve of Erathostenes.PROBLEM:You're given many values of $N$; for each of...
View ArticlePassing arguments to main
I saw in several codes how contestants pass arguments to the main function. Something like *argc. How is it useful? What does it do? And what is the proper way to implement it? Thanks!
View ArticlePython NZEC Runtime Error
import sys num = int(sys.stdin.readline()) while (num != 42): sys.stdout.write(num) num = sys.stdin.readline()Why does the above code give an NZEC runtime error?
View Articlelexicographical strings
In few competitions i came across problems on Lexicographical Strings but i didn't understand anything. So what actually is a Lexicographical String and what is the meaning of minimum string rotation,...
View ArticleThe Lead Game giving wrong answer??
The code works fine for simple test case but giving wrong answer on evaluation.My code is at the following link - link textPlease tell me what is wrong in the code
View ArticleACM ICPC Chennai Regionals
How do I solve these questions https://www.codechef.com/ACMCHN15/problems/CHN15B https://www.codechef.com/ACMCHN15/problems/CHN15C from ICPC regionals held this year ...I didn't found any...
View ArticleSPALNUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Sergey KulikTester:Yanpei LiuEditorialist:Pawel KacprzakDIFFICULTY:SIMPLEPREREQUISITES:Ad hoc, PalindromePROBLEM: Let palindromic number be a number whose decimal...
View ArticleCHEFHACK - Editorial
SUGGESTION:Before posting your question with asking for help try this test. The answer should be 436746489. If it is hard to debug this test for you, here is the helpful information. It contains the...
View Article