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

K6A editorial

PROBLEM LINK:PracticeContestAuthor:Chandan BoruahTester:Chandan BoruahEditorialist:Chandan BoruahDIFFICULTY:EASYPREREQUISITES:Basic MathsPROBLEM:Given an array where elements can take only 2 values...

View Article


TIDUAFT - Editorial

Contest:ICO 2018 Practice Contest 1Author:Udit SanghiTester:Shashwat GoelEditorialist:Shashwat GoelProblem StatementGiven $3$ numbers $N$,$X$ and $K$ you need to tell the number of ways of making an...

View Article


Unofficial Editorials October Long Challenge (Part 2)

Hello GuysThis is the part 2 of three posts of unofficial editorials for October Long Challenge.For Solutions of problems PERFCONT, MEX and/or CHEFCOUN, click here.For Solutions of problems CHEFCCYL...

View Article

Can someone provide the solution to CK87DANC

since the editorials are not out, can someone explain the solution of the problem?

View Article

LISDIGIT - Editorial

PROBLEM LINK:ContestPracticeAuthor:Alexey ZayakinTesters:Hasan JaddouhEditorialist:Alexey ZayakinDIFFICULTY:CakewalkPREREQUISITES:Constructive algorithms, longest increasing subsequencePROBLEM:For an...

View Article


div 2 codeforces round 442

http://codeforces.com/contest/877/problem/Ccan someone point me y bombing from 1 to n and then on n-1 fails , that does destroys all tanks.

View Article

Regarding Codechef's Cook-Offs

I have participated in 6-7 Cook-Offs now, and wanted to give some suggestions that I think will make it better.Cook-Offs use ACM style ranking. But don't you think 20 minutes penalty is a bit too much...

View Article

LTM40AB - WA

Question linkMy SolutionI dont know in what condition my answer will give WA???

View Article


Help needed in Arrfix SRM 696

How to solve Arrfix ? Can someone explain in detail?

View Article


Why is this not right????? (LCOLLIS)

This is my simple solution: import java.util.Scanner; class LCOLLIS { final static long[] factorial = {1,1,2,6,24,120,720,5040,40320,362880,3628800}; public static void main(String[] args) { Scanner...

View Article

Request for simple explanation for MARRAYS problem.

Can someone please give a simple explanation to the MARRAYS problem of Oct'17 long challenge.I tried to understand it from the editorial but i'm unable to understand all the mathematical language...

View Article

INTERVAL TREES!! NEED HELP

Hi all. I recently learnt about interval trees, how I can search for overlapping intervals. But under suggested problem I found FLIPCOIN. Can anyone explain me how it can be solved using INTERVAL TREE....

View Article

LEVY - Editorial

PROBLEM LINK:PracticeContestAuthor:Kaushik IskaTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:SIMPLEPREREQUISITES:Sieve of EratosthenesPROBLEM:For the given positive integer n ≤ N := 10000 you...

View Article


Help regarding a flow problem

Hi. I Have a variant of the standard flow problem. ... 1st let me state in simple terms the original flow problem ( if there is some mistake do let me know ) Say u have a graph with n nodes m edges .....

View Article

online judge time/space variations even when submitting same code

Once I submitted exactly same code using same language... (only with a few comments added to the code), actually I couldn't get the problem so I copied someone else's code for better understanding and...

View Article


CK87MEDI - Editorial

Problem Link:PracticeContestAuthor: Mohammad Shahhoud& Said SryhiniTester: Hasan JadouhEditorialist: Said SryheniDifficulty:cakewalkPrerequisites :SortingProblem:Given an array of $N$ element, you...

View Article

CK87QUER - editorial

Problem Link:PracticeContestAuthor: Mohammad Shahhoud& Said SryhiniTester: Hasan JadouhEditorialist: Mohammad ShahhoudDifficulty:SimplePrerequisites :Two Pointers, Simple MathProblem:Given $Q$...

View Article


CK87GSUB - Editorial

Problem Link:PracticeContestAuthor: Mohammad Shahhoud& Said SryhiniTester: Hasan JadouhEditorialist: Said SryheniDifficulty:EasyPrerequisites :Counting, CombinatoricsProblem:Given a string $A$ of...

View Article

Image may be NSFW.
Clik here to view.

CK87MEAD - Editorial

Problem Link:PracticeContestAuthor: Mohammad Shahhoud& Said SryhiniTester: Hasan JadouhEditorialist: Mohammad ShahhoudDifficulty:Medium-HardPrerequisites :Centroid Decomposition, Sweep Line, Binary...

View Article

Help in ZCO15002 & ZCO13001

I have written this code for ZCO15002: https://www.codechef.com/viewsolution/15948337I also used the same approach for ZCO13001, with this code: https://www.codechef.com/viewsolution/15948396They seem...

View Article
Browsing all 39796 articles
Browse latest View live