SMALL FACTORIAL : c++
this code is giving correct output, but codechef is not accepting this code and showing wrong answer.include<iostream>using namespace std; int main() { int t,n,i,j,f; cin>>t; int a[t];...
View ArticlePLUS- Editorial
PROBLEM LINK:Div1Div2PracticeSetter-Hasan JaddouhTester-Jakub SafinEditorialist-Abhishek PandeyDIFFICULTY:EASY-MEDIUMPRE-REQUISITES:2-D Arrays, Maximum Sum contiguous subarray of a 1-D Array (i.e....
View ArticleWEAKMID- Editorial
PROBLEM LINK:Div1Div2PracticeSetter-Hasan JaddouhTester-Jakub SafinEditoiralist-Abhishek PandeyDIFFICULTY:EASY-MEDIUM PRE-REQUISITES:Clever Simulation, Data strunctures, namely StacksPROBLEM:We have an...
View ArticleSBSTR - Editorial
PROBLEM LINK:Div1Div2ContestSetter-Hasan JaddouhTester-Jakub SafinEditorialist-Abhishek PandeyDIFFICULTY:SIMPLE PRE-REQUISITES:Frequency Array concept's application on string, looping, logical...
View ArticleTRACE- Editorial
PROBLEM LINK:Div1Div2PracticeSetter-Hasan JaddouhTester-Jakub SafinEditorialist-Abhishek PandeyDIFFICULTY:CAKEWALKPRE-REQUISITES:2-D Matrix, LoopingPROBLEM:Given a $2-D$ matrix $A$, find the maximum...
View ArticleTSUM2- Editorial
PROBLEM LINK:Div1Div2PracticeSetter-Haotian YuanTester-Jakub SafinEditorialist-Abhishek PandeyDIFFICULTY:HARDPRE-REQUISITES:Centroid Decomposition, Lines in 2-D Geometry, Convex HullPROBLEM:Given a...
View Articlesmall factorial solution
ok, I know that small factorial has a solution that is now known to the entire codechef( maybe an exaggeration )...but, is it legal, well, allowed to just use one of the library feature of a language ?...
View Articlequickmatch 10 coming soon with 3 hiring companies
This time we have 3 hiring companies and good ones, good coders working in them...Will update details once problems are ready. Readying it. https://www.codechef.com/KQ102018
View ArticleCalculate a^b - b^a
Calculate the value of a^b - b^a .Range : 1 <= a , b <= 100.This can easily be done in python but I need a solution using C++?What should I do to avoid overflow. ( Cannot use MOD also ).Problem...
View ArticleRange overflow in VSN
When we are finding distance b/w P and Q (x2-x1)^2 + (y2-y1)^2 whole underoot.(for 2d case). Now according to constraint of co-ordinates (this value (x2-x1)^2 + (y2-y1)^2) can exceed max value possible...
View Articletime limit exceeded
i am actually trying to write the code for this problem. however it says time limit exceeded. how can i optimise my code.#include <iostream> using namespace std; int main() { long int...
View ArticleDiscussion of problem on forum
This forum which is meant to discuss c++ and STL queries has discussion related to question from june long challenge. links SHKSTRVSN
View ArticleBUILDIT - Editorial
Problem LinkPracticeContestAuthor:Teja Vardhan ReddyTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesMatrix Multiplication, Recurrences, Linearity of Expectation,...
View ArticleWhat's wrong with my submission of TWOFL(June Long)
I implemented the solution of Author given in the editorial, my implementation is same as of him, expect some minor changes in variable names but I keep failing a few test cases in Subtask-2 and 3...
View ArticleAbnormal behaviour of code in PALIN3
I was practicing a question PALIN3, here is the link-> https://www.codechef.com/problems/PALIN3I coded my logic and here it is-> https://www.codechef.com/viewsolution/18880436Now when i run this...
View ArticleARCTR - Editorial
Problem LinkPracticeContestAuthor:Igor BarenblatTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyMEDIUM-HARDPrerequisitesDynamic Convex-Hull Trick, Heavy-Light DecompositionProblemYou are given...
View Articlesheokand and string timecomplexity problem
solution link : https://www.codechef.com/viewsolution/18880951please can someone tell me why i was getting 30 points however my code was similar to tester code
View ArticleHelp with Sheokand and String (SHKSTR)
Hi, my solution fails for 2 of the large test cases. I am unable to identify what's wrong in my solutionhttps://www.codechef.com/viewsolution/18880600Can someone please help me. Thanks a lot in advance :)
View Articlegetkey() function
hi there,i have been trying to build a puzzle game in c language. for this i need a function to input arrow keys.here is my function which i got from on book.include<dos.h>sgetkey() { union REGS...
View ArticleWhy Codechef does not make contest problems test case 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