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

SnackDown 2017

We are happy to announce the CodeChef SnackDown 2017 schedule. It is open for anyone with a knack of programming. Whether you are studying in school, or college, a working professional, or a self...

View Article


Suggestion to Include No of contests participated.

I feel that it would be nice if Codechef adds this extra feature . Below the graph of Codechef Rating( Combined ) , No of Rated Contests Participated: x gets displayed. It would be another interesting...

View Article


INTERVAL solution

Hello, how to solve INTERVAL problem of the long challenge?

View Article

Image may be NSFW.
Clik here to view.

Video Editorial - FEB17 - GERMANDE

Hi Everyone!I have made two video editorials for the Feb Long Challenge. Its on 'Gerrymander' and 'Most Frequent Element'.FEB17 - GERMANDEFEB17 - MFREQFEB17 - EUGENEFEB17 - INTERVALI am in the process...

View Article

MIXFLVOR - Editorial

PROBLEM LINK:ContestPracticeAuthor:Hasan JaddouhTesters:Kamil DebowskiEditorialist:Hasan JaddouhDifficulty:Medium-hardPrerequisites:Gaussian-elimination, two pointers, two stacks trickProblem...

View Article


MIXFLVOR: Supporting Deleting latest-added element onwards. Can someone...

I have understood the 2 lemmas in the editorial: https://discuss.codechef.com/questions/91508/mixflvor-editorial I am not able to understand why the setter wants to use 2 stacks in the first place and...

View Article

When will the editorial for December Long Challenge'16 and Febuary Long...

It's been around 3 months for December Challenge and the editorials are not posted yet. Please upload them soon.

View Article

EXTRAN - Editorial

PROBLEM LINK:PracticeContestAuthor:Kamil DębowskiTesters:Sergey KulikEditorialist:Pawel KacprzakDIFFICULTY:SimplePREREQUISITES:Sorting, basic programmingPROBLEM:We call a sequence of integers nice if...

View Article


SORTROW - Editorial

PROBLEM LINK:PracticeContestAuthor:Kamil DębowskiTester:Sergey KulikEditorialist:Pawel KacprzakDIFFICULTY:ChallengePREREQUISITES:Optimization skills, dynamic programmingPROBLEM:For a given grid with...

View Article


XENTASK - Editorial

PROBLEM LINK:PracticeContestAuthor:Vaibhav TulsyanTesters:Sergey Kulik, Kamil DębowskiEditorialist:Pawel KacprzakDIFFICULTY:CAKEWALKPREREQUISITES:Most basic programmingPROBLEM:There are $N$ tasks...

View Article

Image may be NSFW.
Clik here to view.

BEARTRAP - Editorial

PROBLEM LINK:PracticeContestAuthor:Kamil DębowskiTester:Sergey KulikEditorialist:Pawel KacprzakDIFFICULTY:HardPREREQUISITES:CreativityPROBLEM:The task is to win a modified version of the game known as...

View Article

ATM problem

include<stdio.h>main() { int wit; float bal; scanf("%d%f",&wit,&bal); if((wit>0)&&(bal>=0)&&(wit<=2000)&&(bal<=2000)) {...

View Article

TUPLES2 - Editorial

PROBLEM LINK:PracticeContestAuthor:Hanlin RenTesters:Sergey Kulik, Kamil DębowskiEditorialist:Pawel KacprzakDIFFICULTY:HardPREREQUISITES:Trees, dynamic programming, centroid decompositionPROBLEM:For a...

View Article


Byterace 2017 MODNIM Editorial

We have to see if trump can win the game given that Obama plays optimally. This is same as checking if trump can win if he plays optimally. We can assume that trump gets 2 moves while Obama gets one....

View Article

Cheaters using StackOverflow

I was reading a solution for PSHTBRTH and found a referrence to following StackOverflow link. Note that this question was asked on March 6, 2017 (during the contest).Therefore, all those contestants...

View Article


How should I ask questions

I searched the previous questions on Codechef and found What kinds of questions can I ask here?. This provides us with what kind of questions to ask. But I would also like to get a better more detailed...

View Article

What are the memory limit and stack size on CodeChef?

I wanted to know the limit of the memory for a single program execution and stack size on CodeChef

View Article


PSHTBRTH - Editorial

PROBLEM LINK:PracticeContestAuthor:Ivan FeketeTesters:Sergey Kulik, Kamil DębowskiEditorialist:Pawel KacprzakDIFFICULTY:MediumPREREQUISITES:Game theory, Sprague–Grundy theorem, Segment treePROBLEM:Two...

View Article

memory limit on c/c++ program

I wanna know that how to declare an array of more than 10^7 .. C/C++ only allows to declare array of 10^7 .. what if i want to declare array of more than 10^7.. anyone please help ..

View Article

Unofficial editorial of first five questions (not SORTROW) of MAR17 Long...

Hello guys,I have a Facebook page where I try to post my approach to the problems I solve in any contests. I created this page for two reasons, First, to revise any new things I may have learnt during...

View Article
Browsing all 40121 articles
Browse latest View live