Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live

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 Article


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


REBTET - Editorial

PROBLEM LINK:PracticeContestAuthor:Yurii RebrykTester:Istvan NagyEditorialist:XellosDIFFICULTY:MEDIUM-HARDPREREQUISITES:Computing binomial coefficients, polynomial multiplication (fast Fourier...

View Article

TREEP - Editorial

PROBLEM LINK:PracticeContestAuthor:Vsevolod StepanovTester:Istvan NagyEditorialist:XellosDIFFICULTY:MEDIUM-HARDPREREQUISITES:String hashing, heavy-light decomposition, lowest common ancestor,...

View Article

TREEPATH - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey KulikTester:Istvan NagyEditorialist:XellosDIFFICULTY:HARDPREREQUISITES:Binary-indexed trees (BITs, Fenwick trees) with coordinate compression.PROBLEM:There's a...

View Article


CHSTAMP - Editorial

PROBLEM LINK:PracticeContestAuthor:Evgenij ArtemovTester:Istvan NagyEditorialist:XellosDIFFICULTY:EASY-MEDIUMPREREQUISITES:Graphs - connected components.PROBLEM:You have $N$ stamps of different types...

View Article

runtime error sigsegv in pcycle problem

can anyone tell what is wrong in my code....https://www.codechef.com/viewsolution/8710955

View Article

CHEFSHOP - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman FurkoTester:Istvan NagyEditorialist:XellosDIFFICULTY:MEDIUMPREREQUISITES:Dynamic programming, bitmasking, greedy algorithms.PROBLEM:There are $N$ items and $M$...

View Article


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


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

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

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

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


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

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


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

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


SPALNUM - Editorial

PROBLEM LINK:PracticeContestAuthor:Sergey KulikTester:Yanpei LiuEditorialist:Pawel KacprzakDIFFICULTY:SIMPLEPREREQUISITES:Ad hoc, PalindromePROBLEM: Let palindromic number be a number whose decimal...

View Article

CHEFHACK - 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

Why do I get a Runtime exception?

Why am i getting runtime exception?

View Article
Browsing all 39796 articles
Browse latest View live


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