unable to solve http://www.codechef.com/problems/H1
please someone help me in doing http://www.codechef.com/problems/H1 . I need help with the logic of this problem. Is there any editorial related to this?
View Articledifference between prinf and in cout?
I tried out this question.. http://www.codechef.com/problems/MARBLEGFI got AC when i used cin and cout... Submission: http://www.codechef.com/viewsolution/3333732 I wanted to increase the speed so I...
View ArticleLittle stuart and his teacher HackerEarth
Little Stuart is a smart guy, and he loves mathematics. Today his math teacher taught his class about common factors. After finishing the class his teacher asked them a question: For a given number "n"...
View Articleproblem with object in java
What about the objects which we define outside static method ? how to use them ? Example:=> In the following code how to use object "obj1". I know "obj1" can't be used in static method. But it can...
View Articleuva 10459 - Find all the best and worst roots of an undirected unweighted tree.
Given an undirected tree, how can I find out those vertices which when taken as the root of the tree will minimize the depth of the tree. Similarly, I want to find those vertices which when taken as...
View Articlesimple equation uva
http://uva.onlinejudge.org/external/115/11571.html Can anyone help me with a solution to this problem just not able to get it Thanks in advance :)
View ArticleProduct of Divisors - Time exceeded. Used efficient algos.
Link to the question - http://www.codechef.com/problems/D1/Link to my solution - http://www.codechef.com/viewsolution/3335258I have used a simple and efficient code. Have used as many time-cutters as...
View ArticleEDITORIAL BYTES1 - RADIX
Problem Link: http://www.codechef.com/problems/BYTES1Difficulty: EasyStrategy: MemoizationExplanation: The problem can be solved by following strategy:Store the number of occurrence of each value from...
View ArticleEDITORIAL BYTES2- JUNKYARD
Problem Link: http://www.codechef.com/problems/BYTES2Difficulty: Easy-MediumStrategy: Binary SearchExplanation: The solution to the problem is implementing binary search on domain 1 to 10^9 and have to...
View ArticleEDITORIAL BYTES3 - DESIGN PRO
Problem Link: http://www.codechef.com/problems/BYTES3Difficulty: Medium-HardStrategy: Recursion, DP, Number TheoryExplanation: The initial solution to the problem is by solving through Recursion, and...
View ArticleEDITORIAL BYTES5 - BOTS
Problem Link: http://www.codechef.com/problems/BYTES5Difficulty: EasyStrategy: SortingExplanation: The solution to the problem is implementing sorting the given set of numbers and then choosing the...
View ArticleEDITORIAL BYTES6 - BRAINWAVE
Problem Link: http://www.codechef.com/problems/BYTES6Difficulty: Easy-MediumStrategy: Adhoc Problem, Number SystemsExplanation: The solution to the problem is adding numbers in base 26. Add the...
View ArticleFold.it : Help solve real world problems by playing games / participating in...
Just came across this interesting thing : www.fold.it . Have just downloaded there arena today . It promises that you can make a difference to protein folding world or atleast learn about protein...
View ArticleC or Cpp which is better?
i have this doubt from when i started solving codechef problems.Now i am programming in C language only. Is learning complete C language is more adequate to become a good_programmer/master in codechef...
View Articleproblems not added to practice
are problems of external contest (bytes 2014) will be added to practice..?
View ArticleNEZC(non exit zero code)
i have written a code the code is working fine but while submitting it i get a Non exit zero code and due to this i m getting a error. but my program i correct and i m getting the correct output too ....
View ArticleFCTRL unexpected output
Here is my code for http://www.codechef.com/problems/FCTRL problem.The problem is that my program is giving correct output upto factorial 17 but number after 17 gives wrong output. I have tried to code...
View ArticleBWALL - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEXPLANATIONSETTER'S SOLUTIONCan be found here.TESTER'S SOLUTIONCan be found here.
View Article