MSTEP - Editorial
PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester:Kevin AtienzaEditorialists:Pushkar Mishra and Suhash VenkateshDIFFICULTY:CakewalkPREREQUISITES:NonePROBLEM:Given is a grid of size $N \times N$. It...
View ArticleFastest Way to compute a factorial. . .
I have been trying to work it out for a long time now. Many of the programming challenges involve frequent us of factorials which contribute to the solution of the problem. Needless to say, the value...
View ArticleVideo Game ZCO('14) (Its URGENT)
Can anyone help me with this problem. Its urgent. Got the olympiad tomorrow.http://www.iarcs.org.in/inoi/2014/zco2014/zco2014-1a.phpMy code runs fine for the test cases.But I'm exceeding time limit...
View ArticleHow should I ask questions
I searched the previous questions on Codechef and found What kinds of questions can I ask here?. This provides us with what kind of questions to ask. But I would also like to get a better more detailed...
View ArticleTest Case #0 in SMPLSUM
Is test case #0 for this problem the same as sample test case? If no, is the sample test case even included in the test cases?
View ArticleZCO problem Little Red Riding Hood
I am trying to solve this problem(http://www.iarcs.org.in/inoi/2013/zco2013/zco2013-1b.php) This is the code I wrote.I have no idea why this is being given a TLE. Can this be improved ? Maximum cost...
View ArticlePrime factorization of large numbers
I have a query kind of a problem in which no of range 10^7 needed to be prime factorized, so in pre processing I require that all the no less than 10^7 are in the form of prime factors i.e.: 8=2^3...
View ArticleXORSUB - Editorial
PROBLEM LINK:PracticeContestAuthor:Lalit KunduTester 1:Minako KojimaTester 2:Shiplu HawladerEditorialist:Pawel KacprzakDIFFICULTY:SIMPLEPREREQUISITES:DP, bitsPROBLEM:You are given an array A of N...
View ArticleXOR with subset.Not understanding the logic of dp!
</>dp[i][j] = dp[i - 1][j] | dp[i - 1][j ^ a[i]]</>How is this arrived at.Why does A[0...i-1] having value j necessarily mean that A[0...i] should also posses the value j?And why is this...
View ArticleWhy does my code show ':( internal error occurred in the system'?
I submitted my code and it is showing this error: ' :( internal error occurred in the system ' But it is saying WA in my profile. What's wrong?
View ArticleFinding prime factors of a large number
is there any tutorial for finding prime factors of a large number..?? plzz help.
View ArticleTravelling Plan problem dilemma
Hello everyone. I am totally new to Codechef. I would rather say I am below novice level. So I went on to practice my first problem Traveling Plan. I would like to know if I assumptions are right:There...
View ArticleComputing Olympiad Problem Doubt!
I am a grade 12 student from Mumbai. I am planning to appear for the Zonal Computing Olympiad this Saturday which is for school students. I am facing a problem regarding a particular question from ZCO...
View ArticleZCO Spaceman Spiff and Rectangles - an extension
Spaceman SpiffProblem link: http://www.iarcs.org.in/inoi/2013/zco2013/zco2013-2b.phpWhat if the spaceman could move up and left as well? Definitely, more of the paths which are not possible just moving...
View ArticleHow is this possible ??
I am using fast I/O method in my code for SIMPLESUM problem and instead it is increasing my runtime by give me tle in some subtasks..!! what should i do ?? they have recommended in question to use fast...
View ArticleADIGIT WA cant find error
I tried to solve this problem(https://www.codechef.com/problems/ADIGIT) with same logic as given in Editorial still getting WA plz explain flaw in my code Description of code 1)Take an structure...
View ArticleROUND TABLE ZCO
This gives WA on the last test case of the first subtask alone resulting in 70 points.http://www.hastebin.com/acejunemov.valaHave I missed out a corner case? Or is there a flaw in my logic?
View ArticleZCO Little Red Riding Hood
I am trying to solve this problem(https://www.codechef.com/ZCOPRAC/problems/ZCO13002) This is the code I wrotehttp://pastebin.com/VRPVbAW0It fails on tasks 1, 3 and 7
View ArticleWA in Princess Farida problem
http://www.spoj.com/problems/FARIDA/ Even after passing all the test cases ,I am getting a WA in the problem and I am unable to figure out the error long long int a[1000000],dp[1000000]; int main() {...
View ArticleZCO Wormhole
Hello, I have been trying to solve https://www.codechef.com/ZCOPRAC/problems/ZCO12002This is my current code. http://pastebin.com/aF2KGHqyIt fails on test case 14 only with Wrong Answer
View Article