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

Need help with this problem

Can anyone help me with the solution of this problem? https://www.codechef.com/QUCO2018/problems/BEERUS/Thanks in advance :)

View Article


AVNRTRI - Editorial

PROBLEM LINK:ContestPracticeAuthor:Amit Kumar PandeyEditorialist:Amit Kumar PandeyDIFFICULTY:SIMPLEPREREQUISITESMathsPROBLEM:Ironman wants to build his new core. For that, he inputs three random number...

View Article


Image may be NSFW.
Clik here to view.

SHKSTR - Editorial

Problem LinkPracticeContestAuthor:JitenderTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASY-MEDIUMPrerequisitesTries, Offline queryingProblemYou a given $N$ strings and $Q$ queries. For each...

View Article

AVNRSER - Editorial

PROBLEM LINK:ContestPracticeAuthor: Mrinal SinhaEditorialist: Mrinal SinhaTester:Amit Kumar PandeyDIFFICULTY:EASYPREREQUISITES:MathPROBLEM:Starlord is stuck in space on his way back after a successful...

View Article

Tricks and Tips to perform better in Programming competitions.

Hello everyone,I like Programming very much but due to some reasons, I am not able to perform well. Most of the time I get "wrong answer" even if it seems to be correct(may be due to it isn't working...

View Article


tutorial on code optimization

Tips for Optimizing C/C++ Code1.Code for correctness first, then optimize!This does not mean write a fully functional ray tracer for 8 weeks, then optimize for 8 weeks!Perform optimizations on your ray...

View Article

Please explain why my code is failing for last test case.

Hey,all Can someone help me in finding the error in logic as my last case is not passing. Any help would be appreciated. My logic I have taken two set one set will contain all the ingredients found on...

View Article

Getting wrong answer COMPILER

Can anyone help me out: https://www.codechef.com/viewsolution/18917156

View Article


Image may be NSFW.
Clik here to view.

BIBOARD - Editorial

Problem LinkPracticeContestAuthor:TianyiTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyHARDPrerequisitesFlows, Minimum CutProblemYou are given a grid consisting of $0$(white), $1$(black) and...

View Article


Image may be NSFW.
Clik here to view.

ARCTR - Editorial

Problem LinkPracticeContestAuthor:Igor BarenblatTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesDynamic Convex-Hull Trick, Heavy-Light DecompositionProblemYou are given...

View Article

VSN has a closed form solution

I'm not sure to class this as an editorial or whatever, but it's interesting. A well spent few hours digging into this.I figured during the competition that VSN should have a closed form expression, a...

View Article

Uncle johny

// https://www.codechef.com/submit/complete/18917369include<bits stdc++.h="">using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; int a[100]; int b[100]; for(int...

View Article

Why Codechef does not make contest problems test cases public after contest...

my humble request to @admin to share test cases of contest problems with editorial, or provide feature to see test cases during submission after contest gets over.. while practicing one get WA, TLE or...

View Article


the output is correct still showing wrong answer in GCD2 easy level

T = int(input()) for i in range(T) : A,B = list(map(int,input().split())) k = [] x=[] for i in range(1,100): if A%i==0 : k = k+ [i]for i in range(1,100): if B%i==0 : x = x+ [i] v=set(k) w=set(x)...

View Article

BUILDIT - Editorial

Problem LinkPracticeContestAuthor:Teja Vardhan ReddyTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesMatrix Multiplication, Recurrences, Linearity of Expectation,...

View Article


RUN TIME ERROR in c++ code

https://www.codechef.com/problems/BOOKCHEF for this problem , i am getting a runtime error . Here's my code https://www.codechef.com/viewsolution/18917667

View Article

RUNDIR - Editorial

Problem Link:PracticeContestSetter: Alei ReyesTester: Triveni MahathaEditorialist: Triveni MahathaDifficulty:EASY MEDIUMPrerequisites:Binary Search, GreedyProblem:N students are standing at distinct...

View Article


Unfair Codechef Ratings

So due to some small mistake a while ago when my rating was dropped by around 500 points for plagiarism in a really old contest, I didnt say anything. I gave the June Long Challenge and to my surprise,...

View Article

Should we have proper ordering of questions in Short Contests

While trying problems in short contest, most of you must be puzzled - where to start. Which is the easiest problem? Since initially the questions are sorted randomly and sometimes the 4th and 5th...

View Article

Uncle Johny

https://www.codechef.com/viewsolution/18918873 //include<bits stdc++.h="">using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; int a[100]; int b[100]; for(int...

View Article
Browsing all 40121 articles
Browse latest View live


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