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 ArticleAVNRTRI - 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 ArticleSHKSTR - Editorial
Problem LinkPracticeContestAuthor:JitenderTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASY-MEDIUMPrerequisitesTries, Offline queryingProblemYou a given $N$ strings and $Q$ queries. For each...
View ArticleAVNRSER - 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 ArticleTricks 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 Articletutorial 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 ArticlePlease 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 ArticleGetting wrong answer COMPILER
Can anyone help me out: https://www.codechef.com/viewsolution/18917156
View ArticleBIBOARD - Editorial
Problem LinkPracticeContestAuthor:TianyiTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyHARDPrerequisitesFlows, Minimum CutProblemYou are given a grid consisting of $0$(white), $1$(black) and...
View ArticleARCTR - Editorial
Problem LinkPracticeContestAuthor:Igor BarenblatTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesDynamic Convex-Hull Trick, Heavy-Light DecompositionProblemYou are given...
View ArticleVSN 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 ArticleUncle 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 ArticleWhy 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 Articlethe 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 ArticleBUILDIT - Editorial
Problem LinkPracticeContestAuthor:Teja Vardhan ReddyTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesMatrix Multiplication, Recurrences, Linearity of Expectation,...
View ArticleRUN 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 ArticleRUNDIR - Editorial
Problem Link:PracticeContestSetter: Alei ReyesTester: Triveni MahathaEditorialist: Triveni MahathaDifficulty:EASY MEDIUMPrerequisites:Binary Search, GreedyProblem:N students are standing at distinct...
View ArticleUnfair 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 ArticleShould 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 ArticleUncle 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