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

getting sigsegv error in tangdiv

not able to detect which part is causing segmentation fault link to my code is: http://www.codechef.com/viewsolution/3792043

View Article


Google Code jam

I can solve the problems of Google code jam however it takes time to make the problem whereas Round 1A,1B,1C require quick problem solving.Can anyone give me some idea how can i improve my speed.

View Article


NZEC in Python

I am getting NZEC runtime error, please help me for this following code:ch1 = input("")ch = int(ch1[:1])while (ch > 0):kk = input("") inp = kk[:3] a, b = [int(i) for i in inp.split(' ')] x = a**a y...

View Article

NZEC error

Bank_Charges = 0.50 while(True): Entered_Amount = int(input()) Initial_Balance = float(input()) if Entered_Amount % 5 == 0 and not Entered_Amount>=Initial_Balance: print(Initial_Balance -...

View Article

RESIST - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis problem may look scary at first to someone who haven't seen electrical resistors before, but the basic things needed to solve are explained in...

View Article


Direct-I intern

Someone please help Consider an infinite binary tree defined as follows. for a node labelled v its left child will be labelled 2v and its right child will be labelled 2v+1. The root is labelled as 1....

View Article

codejam 2014 bits xoring

Hey guys am not able to get the idea how to solve the first question https://code.google.com/codejam/contest/2984486/dashboard#s=p0 of Codejam Round 1A,Pleae help me out..Thanx in advance :)

View Article

Remove minimum edges in a graph such that given vertices are disconnected

Given an undirected graph and there are some edges connecting the nodes. There can be path between two nodes. We have to disconnect two nodes by removing the minimum number of edges. What is the best...

View Article


CIRCLE - Editorial

Problem link : contestpracticeDifficulty : Easy-MediumPre-requisites : DP, Flood-fillProblem : Determine, whether it's possible choose a cell in such a way that all the normal minions would not be...

View Article


KFORK - Editorial

Problem link : contestpracticeDifficulty : SimplePre-requisites : Basic programming language conceptsProblem : Find the number of ways to put a black knight on a chessboard with a number of white...

View Article

TANDC - Editorial

Problem link : contestpracticeDifficulty : Easy-MediumPre-requisites : Modular ArithmeticProblem : Find the maximal K that Mk divides an integer, obtained by the rules described in the problem...

View Article

getting wa : lights

i have tried for many test cases my code gives correct answer but on submitting it gives WAmy code: http://www.codechef.com/viewsolution/3795774problem link:...

View Article

MPROD-problem lunchtime

I was unable to solve this problem during the contest and after i was going through the submissions.so,i found this code which is coded by @dreamoon4 who is ranked 1 in this contest but i am unable to...

View Article


Requesting pinned post

I have been quite active on the discussion forum from past 10 days. I have been answering as much queries as I can answer correctly. One thing that I commonly find in the queries asked by new users is...

View Article

python nzec

http://ideone.com/L1fcanIdeone.com am getting nzec error for the problem am new to python http://www.codechef.com/problems/HS08TEST/

View Article


Problem solving using 1D dp .

I have solved this question using 2D recurrence relation(DP) .I have solved few such problems in past which had both 2D and 1D soln But i am not able to figure out proper 1D recurrence relation (DP)...

View Article

MPROD - Editorial

Problem link : contestpracticeDifficulty : EasyPre-requisites : Greedy, Prime factorisationProblem : You are given an array of integers, anytime you can pick two numbers from it and divide them both by...

View Article


Floyd Warshall Dynamic Programming

Can Floyd Warsahll algorithm be applicable with cycles of negative length ?? @kcahdog@vineetpaliwal@anton_lunyov@darkshadows@hkbharath Please help me out with this problem.Thanx in advance :)

View Article

What is wrong with my KFORK code?

So, idk.... Tried all possible test cases (I think...) but WA.my code: http://pastebin.com/6D6KGp7athis is a problem: http://www.codechef.com/LTIME11/problems/KFORK

View Article

What is wrong with my KFORK code?

So, idk.... Tried all possible test cases (I think...) but WA.my code: http://pastebin.com/6D6KGp7athis is a problem: http://www.codechef.com/LTIME11/problems/KFORK

View Article
Browsing all 40121 articles
Browse latest View live