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

MGAME - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Smit mandaviaTester:Xiuhan WangEditorialist:Taranpreet SinghDIFFICULTY:EasyPREREQUISITES:Modulo operator and Basic...

View Article


Implementation of Dijkstra's Algorithm using set data structure in C++

I was trying to implement Dijkstra using set data structure in C++. I was coding in C++14 and there seems to be something out of order in the code for it is not giving me the right answer in Codechef...

View Article


RECTSQ, am I unable to understand?

https://www.codechef.com/problems/RECTSQMy Code:#include <stdio.h> int ans; int finder (int a, int b) { if(b > a) { a += b; b = a-b; a = a-b; } int k = a/b; ans += k; if(a-(k*b))...

View Article

KINGCON - Editorial

PROBLEM LINK:PracticeContestAuthor:Jay PandyaTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:EASYPREREQUISITES:Biconnected componentsPROBLEM:Getting rid of the story line the problem simply...

View Article

Previous CCDSAP exam questions

Where can I find all the previously conducted CCDSAP exam questions?

View Article


How to implement Pair Class in Java?

Is there any inbuilt library for pair class in java like in c++? If not how to we implement pair class in java and how can we do pair sort with respect to the first element and pair sort with respect...

View Article

DPAIRS - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Noszály ÁronTester:Xiuhan WangEditorialist:Taranpreet SinghDIFFICULTY:EasyPREREQUISITES:Sorting and maps and a nice...

View Article

Invitation to CodeChef January Cook-Off 2019 sponsored By ShareChat

Greetings CodeChef community!I invite you to participate in CodeChef’s January Cook-Off 2019 sponsored by ShareChat*. This short contest lets you solve 5 problems in 2.5 hours. The contest problem...

View Article


Regarding JavaFX Library error.

when we import JavaFX library in codechef IDE.it was showing a syntax error.How can we rectify this one??

View Article


Need your help! YVMUN

I cant understand why i am getting wrong answer in YVNUM. I matched all testcases and corner cases that i can think of ..with the testers solution and my solution ..all are hiving same...

View Article

PARRTY - EDITORIAL

PROBLEM LINK:PracticeContest: Division 1Contest: Division 2Setter:Mohammad NematollahiTester:Xiuhan WangEditorialist:Taranpreet SinghDIFFICULTY:Medium-HardPREREQUISITES:Segment Tree and Implementation...

View Article

Is there any formula to calculate nth fibonacci number ?

Suppose we are given, a(0)=x ; a(1)=y and the relation, a[i]=a[i-1]+a[i-2] and , we are asked to calculate a(n) , how to calculate it if n is as big as 10^9 ?Thanks ! :-)

View Article

Doubt in MGAME explanation

In the first line of the explanation why does M have to be less than min(i,j,k,N) and how are we removing the last mod N.??

View Article


Image may be NSFW.
Clik here to view.

GetCode Codechef/Codeforces/SPOJ plugin for Sublime Text 3

GetCodeThis is an ST3 plugin which:Take the URL of a problem such as https://www.codechef.com/problems/INVLIS.Parse the URL and get the problem code(In this case it is INVLIS).Create a new .cpp or .py...

View Article

Image may be NSFW.
Clik here to view.

Invitation to RATED Contest(Div1+Div2) Enigma on Codechef, 10 January 2019

Hello, CodeChef community,Tired of searching for the perfect teammates in every competition? Want to prove your worth as a solo coder? Looking for the perfect platform to display your skills?This solo...

View Article


Image may be NSFW.
Clik here to view.

GetCode Codechef/Codeforces/SPOJ plugin for Sublime Text 3

GetCodeThis is an ST3 plugin which:Take the URL of a problem such as https://www.codechef.com/problems/INVLIS.Parse the URL and get the problem code(In this case it is INVLIS).Create a new .cpp or .py...

View Article

Image may be NSFW.
Clik here to view.

Invitation to RATED Contest(Div1+Div2) Enigma on Codechef, 10 January 2019

Hello, CodeChef community,Tired of searching for the perfect teammates in every competition? Want to prove your worth as a solo coder? Looking for the perfect platform to display your skills?This solo...

View Article


Video Editorial | Chef and Modulo Game | MGAME

Check out the video Editorial for MGAME from January long challenge 2019 LINK

View Article

Runtime error

I am getting a runtime error(SIGSEGV) when I run the code on codechef's compiler. Below is my code but when I run this code on my local machine then it is giving me the right outputs. I don't know what...

View Article

Extremely unbalanced short contests

It has been my observation that CodeChef's short contests like monthly Cook-Offs and Lunchtimes have become extremely unbalanced in difficulty level. The best example I have is of COOK101 (December...

View Article
Browsing all 39796 articles
Browse latest View live


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