Digit Dynamic Programming
I have been solving http://www.codechef.com/COOK46/problems/ANUBGCI cross checked my answers for various inputs with the accepted solutions & all were correct even for N=10^17. Till now mine...
View ArticleCONTEST: Dice Jobs Coding Contest($800 in cash prizes)
Programmr.com is hosting a coding contest sponsored by Dice.comTo participate, head over to our contest page http://www.programmr.com/dice-jobs-coding-contest and read the guidelines and criteria....
View ArticleJava: distance between two cities using array
Acme Trucking Company has hired you to write software to help dispatch its trucks. One important element of this software is knowing the distance between any two cities that it services. Design and...
View ArticleNZEC in Spoj COMDIV. Please help me fix it.
The problem link : http://www.spoj.com/problems/COMDIV/ and This is what I did: http://ideone.com/wAB2k8 Constantly getting NZEC. Please let me know what is causing the runtime error. Besides time...
View Articlenot getting the mistake
The Morning Commute - successfull submissions = 706 , codechef easy. I am geeting wrong answer for my code on submitting.I have tried the sample test cases given and also some of my own and got correct...
View ArticleWrong Answer in PNTNG
Solution Link:http://www.codechef.com/viewsolution/4137920Problem Link:http://www.codechef.com/problems/PNTNGThanks in advance!
View ArticleA new idea for detecting Plagiarism
The cases of plagiarism related cheating is increasing day by day on Codechef. Some smart cheaters not just copy paste each other's code but they make some minor changes in the copied code (like...
View ArticleUps and Downs-getting runtime error(NZEC)
My code is running fine on my computer (I am using eclipse IDE) but it is getting RUN time Error Can somebody please help? My code-http://www.codechef.com/viewsolution/4138313
View ArticleUsing long long takes twice more time than using int !!!
Okey, I knew that using long long takes more time than using int. It is kinda logical. But, I just got AC on a problem (MAXPR) that took 6.72 seconds with long long (4138250) and then the same solution...
View ArticlePython returning NZEC in ATM
ankitchannedef atm(w): fund=30000.00 w=input() total=w+w*0.50/100 if w%5==0 and fund-total>=0: print fund-total else: sys.exit() atm(0)this is my code.But I am getting NZEC. help-the-noob
View ArticleWhat this line means?
I found this line written in one of the solution I went through a solution if((P>>=1)) { //some call to a function was done here } I don't know meaning of this line, is it a check for even/odd,...
View ArticleCARAVANS - Pascal
for the Problem statement caravans i have used Pascal. Code:http://www.codechef.com/viewsolution/4139440Could anyone tell why it is TLE? or we cannot use pascal for large i/o ??
View ArticleLEMOUSE - Editorial
Problem Link:PracticeContestDifficulty:SimplePre-requisites:Dynamic ProgrammingProblem:Little Elephant is coordinates (0, 0) of a NxM grid A. A[i][j] = 0 if there is no mouse in cell (i, j), else it is...
View ArticleHow to remove sigabrt runtime error?
For the practice(easy) question Sums in a Triangle - http://www.codechef.com/problems/SUMTRIANwhy is my code giving sigabrt error? I've googled it and I am a bit confused. At some places it was given...
View ArticleGiven a BST, find all sequences of nodes, that will generates the same bst.
Given a Binary Search Tree, generate all the sequences which would create the same binary search tree. For eg: if bst is 5 / \ 3 7 then output: 5 3 7 5 7 3If bst is: 5 / \ 4 7 / / \ 1 6 10 then output:...
View ArticleNZEC error
Plz anybody help (One can tell me why am i getting nzec error)I have devoted my whole day in solving this but getting NZEC error .i checked for so many testcases Plz check it at below linkMysolution :-...
View ArticleICPC LIVE 2014 Live coverage
Watch the complete live coverage of IBM ICPC 2014, here http://www.icpclive.com
View Articlewhat is wrong with my code?...i got WA...its the question from june cook-off
include<cstdio>include<iostream>include<cmath>include<algorithm>include<cstring>include<sstream>include<utility>include<set>include<cstdlib>include...
View ArticleIndian Teams in ACM-ICPC 2014 Live Rankings
Live Ranking of all teams can be seen here : ACM-ICPC Live RankingsThere are 8 teams from India participation in the ACM-ICPC finals .Anil Neerukonda Institute of Technology and Sciences randomlyIndian...
View ArticleCONFLIP - Editorial
PROBLEM LINKPracticeContestDIFFICULTYCAKEWALKPREREQUISITESAd Hoc, Simple MathPROBLEMIn the game of Coin Flip there are initially N coins on the table. All these coins are either showing Heads or Tails....
View Article