Execution Time knowledge!!!
hey how to know the execution time of my program....plzzzzz....help as i m new to it!!
View ArticleWA in MSTICK
I am trying to solve in O(Qroot(N)) but getting WA. I am not getting where I am failing, Please check my solution.#include<stdio.h> #include<math.h> #define MAX 1000000 #define MAX_MIN...
View ArticleSpoj Quadratic Equation WA and discussion on "goto"
I am trying this sum on spoj and getting a WA...i can't find what case may be giving a WA...this is the solution...can ne pls find a case where this solution is failing or maybe point out a mistake in...
View ArticleCompilation error using iostream.h and conio.h
I wrote my first program in c++ and ended up with this compilation error, please help me out.In file included from /usr/lib/gcc/i486-linux/4.0.1/../../../../include/c++/4.0.1/backward/iostream.h:31,...
View ArticleSPOJ QTREE4
I am trying to solve the problem QTREE4 but can not get any working solution. I have seen some solutions use Heavy-Light decomposition and Heap but could not make out the algorithm by seeing their...
View ArticleCould we relax the submission time constraint for compilation errors?
Often end up selecting the wrong language (or not selecting the right one) while uploading a submission. Would be nice to not have the submission timeout backoff for compilation errors atleast.
View ArticleQTREE - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYHARDPREREQUISITESGraph Theory, Segment Trees, Heavy Light DecompositionPROBLEMYou are given a connected graph on N vertices consisting of N edges.Each edge has a...
View ArticleWhere do you code in python?
Where do you code in python? I want to know whether to code directly on the console or to use text editors like edit++ or we have something similar to IDEs like eclipse,netbeans for pythons.. Thank...
View ArticleBinary search Python 2.7
I'm getting WA on SPOJ. Here's the problem: http://www.spoj.com/problems/BSEARCH1/ Here's the code: http://ideone.com/0CSrEj (it includes optimization)I need a test case that will help to find a...
View ArticleNumber of Iteration In Robin Miller algo
My Question is that what will be the effect of number of iteration in Robin miller algo sometimes it produce correct answer after passing 0 or 1 iteration sometimes it need upto 8 iteration whats the...
View ArticleIs the size of an array limited?
Here is link to my code- http://www.codechef.com/viewsolution/2174509I guess for inputs like 9999000 10000000, the program didn't run due to the size limit of the array, as one "hey" is being printed...
View ArticleDiscussion on Inline Functions.
When I'm using inline with ModMultiply function, its giving tle else AC. Problem Link : http://www.codechef.com/problems/WITMATHAC Code without inline : http://ideone.com/hFGQPqTLE with inline :...
View ArticleSummer Internship Contests
@admin and users : Don't you guys think that there should be hiring contests or something like that on Codechef, kind of like what they had on Hacker Earth this month. I mean we do have excellent...
View ArticleHandShake Problem BitFreak2013 NITA
This is the problemhttp://www.codechef.com/BTFR2013/problems/NITA10And this is my solution:http://www.codechef.com/viewplaintext/1926203Can anyone tell me why it gives wrong answer?
View ArticleShortest Path in a Graph visiting all nodes atleast once!
I have been trying to solve following problem from topcoder practice problems:Problem LinkI have found one of topcoder user's solution, but I could not understand it. Can somebody please explain me the...
View ArticleTOP BATSMEN [WA] check my code
http://www.codechef.com/viewsolution/2180244 what's wrong in this code..
View Article