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

#include - Compile Time

Is it good to use bits/stdc++.h header file in Codechef or any other competitive platforms? Because according to this link, the first answer says it increases compilation time. In general, I want to...

View Article


Chef the Brave Warrior Editorial

Problem Link-https://www.codechef.com/problems/EXOCODE5Author:https://www.codechef.com/users/vivek96DIFFICULTY:Easy-MediumPREREQUISITES-Big-Integer,Basic Java ProgrammingPROBLEM:Chef is a brave Warrior...

View Article


What is offline query?

While trying to solve http://www.spoj.com/problems/DQUERY/en/, I came across an offline solution. It sorted the queries before hand and solved it. Can anyone help me understand the approach? How can...

View Article

CODEZILLA Hidden Solutions

Why the solutions of CODEZILLA contest are not visible to us @admin? Is it a private contest or there is any BUG in that page?

View Article

Red, Green or Yellow colors not given to the problems in contests.

Earlier Red, Green or Yellow colors were given to the problems in the contests describing whether we didn't solve them, we solved them or we solved them partially. That feature was very good but why...

View Article


AC solution in Python for Chef the Brave Warrior.

Can someone please provide the AC solution of Chef the brave Warrior in python. I have submitted this https://www.codechef.com/viewsolution/13102468 solution but getting runtime error, don't know whats...

View Article

Regarding MARCH17 SCHEDULE

Hello, I just submitted a relatively naive solution to the SCHEDULE problem of MARCH17. It was accepted for 100 points. I think that the test cases for this problem are weak. Could the problem setters...

View Article

Kickstart Round A

Hello everyone, There will be a youtube livestream of problem discussion of Round A (Kickstart 2017) by Akashdeep Nain. Also in store is some discussion regarding DS, Algorithms and some tips on how to...

View Article


Ratings for Institutes In Competetive Programming (CpCtrl.com)

Hello Everyone,Codechef has been a great platform for motivating and guiding potential competitive programmers on the individual basis. Ratings for all the contests: Long, Short and Lunchtime keep the...

View Article


SSQ - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASY-MEDIUMPREREQUISITES:DFS, KnapsackPROBLEM:We are given a tree, and a set of cost and items associated with each node. We have to compute the optimal spending...

View Article

GMQ - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYPREREQUISITES:FactorizationPROBLEM:Given an array, we have to give the sum of factors from L to RQUICK EXPLANATION:Store the factorized sum of each element...

View Article

KSQ - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYPREREQUISITES:StringsPROBLEM:We have to check if there exists a string in the given set of strings which can be written by using only the first terms of the...

View Article

Does CodeChef have any Code Of Conduct?

I am new to CodeChef. I am not sure what can be considered as an improper conduct on this website. I do not want to be penalized for doing something unknowingly which is not the accepted behavior. Is...

View Article


Real meaning of data hiding and encapsulation(Beginners+Expert)

Data hiding and encapsulation, this concepts are never explained in any text beyond the definition and people often misunderstood this concept therefore I have made a video on youTube in which I have...

View Article

MAKETRI: Getting WA only for 2 cases. Rest AC. What's wrong with my code?

I get WA on Tasks 15 and 16 and AC on the rest. I am not able to spot the bug. Could someone help. Thanks!Headers included is bits stdc++.husing namespace std; long long min(long long a, long long b) {...

View Article


I think I found a loop hole in MAKETRI February Long Challenge 2017...

Consider the following code, which gets AC with 100 points for the question. The code can be found here:https://www.codechef.com/viewsolution/13056645Now, consider the following test case:3 500 700 1 5...

View Article

How to Use Dynamic Programming in this problem?

Problem-Riya is quite famous for her problem-solving skills in VESIT. When she was facing an interview for placement, a recruiter asked her this question :Let's consider a triangle of numbers in which...

View Article


Unethical Karma Farming?

I am finally frustrated and have to post this .I have been observing the codechef profile of this months top contributor @laxman94 for today and have found that most of his upvotes are done by his...

View Article

Doubt regading NTT

I have a doubt about how devide polynomial in NTT.Specifically in this problem link :https://www.codechef.com/JULY16/problems/POLYEVAL/ In editorial and many solution,they are deviding polynomial into...

View Article

ALOST - Editorial

PROBLEM LINKPracticeContestContributorsAuthor:Amit PandeyTester & Editorialist:Prateek GuptaDIFFICULTY:Medium PREREQUISITES:Number theoryPROBLEM:Find any valid array of $N$ integers having $E$...

View Article
Browsing all 40121 articles
Browse latest View live