Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live
↧

Execution Time knowledge!!!

hey how to know the execution time of my program....plzzzzz....help as i m new to it!!

View Article


WA 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 Article


Spoj 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 Article

Compilation 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 Article

Execution Time Info!

How to know the execution time of my program ?

View Article


RTE in SPOJ problem ABSYS

Link to my Code : http://ideone.com/4cAId8

View Article

SPOJ 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 Article

Could 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 Article


QTREE - 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 Article


Where 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 Article

Binary 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 Article

Number 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 Article

Sorting algorithm

which is the best sorting algorithm for a large array ??

View Article


Is 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 Article

Discussion 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 Article


Pointer problems

How to find the no. of elements in an array using a pointer

View Article

Summer 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 Article


HandShake 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 Article

Shortest 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 Article

TOP BATSMEN [WA] check my code

http://www.codechef.com/viewsolution/2180244 what's wrong in this code..

View Article
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>