SMHTD - Editorial
PROBLEM LINK:http://www.codechef.com/SMHT2014/problems/SMHTDDIFFICULTY:EASY-MEDIUMPREREQUISITES:Longest Increasing subsequence.EXPLANATIONFor each element of modified sequence we have bi >= i...
View ArticleSMHTC - Editorial
PROBLEM LINK:www.codechef.com/SMHT2014/problems/SMHTCDIFFICULTY:MEDIUM-HARDPREREQUISITES:Brute Force , BFS.EXPLANATION:The constraints make the problem to be solved by a Brute Force approach....
View ArticleO(N) solution required
Given an array of numbers find all such triplets that satisfy the given condition.Condition: a[i] < a[j] < a[k] where I < j < k.
View ArticleWhere do I register for Codechef ID?
From where does i get the id required to participate in the contests ??
View ArticleSMHTE - Editorial
PROBLEM LINK:http://www.codechef.com/SMHT2014/problems/SMHTEDIFFICULTY:CAKEWALKPREREQUISITES:None.EXPLANATIONThis problem can be solved by Brute Force. Dividing the number by 2 in a loop and checking...
View ArticleConfusion regarding modulo operaor
Referring to this solution http://www.codechef.com/viewsolution/3331816 (got AC) for the question http://www.codechef.com/problems/CLMBSTRS, i came across teh confusion regarding modulo operator. I...
View ArticleDifference between sort(begin(),end()) and sort(begin(),end(),compare)
what is the exact difference between them?
View ArticleWhy is my Answer wrong??
All submissions for this problem are available.For help on this problem, please check out our tutorial Input and Output (I/O) Your program is to use the brute-force approach in order to find the Answer...
View ArticleWhy is my answer wrong for The Guessing Game (Easy)?
include <stdio.h>include <string.h>int main(int argc, const char * argv[]) { int j,t;scanf("%d",&t); for(j=0;j<t;j++) { int k,i,truth=0,lie; char str[90]; char a; int b,n;...
View Articlecountry code & rank problem
why I don't see my rank? and why I don't have any country code?
View ArticleSuperFunction
Can someone please explain the logic for (for SUBTASK 3 AND 4) http://www.codechef.com/LTIME07/problems/SFUNC of this question?! I m unable to get the same form editorial.
View Articleproblem code:Flipcoin
i want to ask I don't know what algorithm to implement in this problem can you explained it. i almost give up on this.... i tried using array of bool that give me TLE for sure. i think about bitset too...
View ArticleMaximum GCD of all pairs
I was thinking of problem : http://www.codechef.com/problems/BYTES4Given N integers, output the maximum value of GCD for all the pairs possible. How to approach this question? Please Help.
View Articlehow to implement tutte matrix.?
i know that tutte matrix is used to check perfect matching in a given graph? and we make a skew symmetric matrix in it. but how to implement it? can anybody help me out.? Thanks in advance :) (PS : I...
View ArticleTesting of own code.
Problems given has examples of very small size, when you try that you get correct answer and in less time. but, when the expected range is so long how to check that one. My question is can i get the...
View ArticleA doubt in Java
I saw many programs containing objects but in all of them object was declared in static method. So, I have a following doubt.How to use the objects which are not defined in static methods ? Can you...
View ArticleCIELAB - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis is the easiest problem in the set. This problem can be solved various methods. For instance, if A - B mod 10 = 9, print A - B - 1, otherwise...
View ArticleMarbles wrong answer
Can anyone tell me where I went wrong in the Marbles problem? I dont see any fault in my Solution.
View Article