What is CodeChef Discuss?
I am new to CodeChef. Can somebody help me understand what is this CodeChef discuss?
View ArticleCount the number of distinct sub-sequences of T in S
Given a string S and a string T, we have to count the number of distinct sub-sequences of T in S. Can anyone please explain the DP approach behind solving this problem. Here's one basic solution i...
View ArticleWhat is the star after some people in the discuss section
I find a few people with a star like symbol after their name?? What is that?? How can we get that?
View ArticleHow do I go back to CodeChef from this website?
Can someone tell me if there is link on CodeChef Discuss to go on the main CodeChef website? I can’t find it anywhere.
View ArticleWhy are the editorials posted on CodeChef Discuss, when they are neither a...
I understand that this is a Q&A site and users come here to ask their questions. But the problem editorials are not questions but are rather large informative posts on problems. Does not this defy...
View ArticleFAST I/O discussion
I had a ques related to the recent discussion we had on fast I/O...using that function how do we read EOF!!!!I had to start a new Thread as the earlier one was closed...pls dont mind..:)
View ArticleHow to get back to CodeChef homepage from CodeChef Forum?
There does not seem to be a button or link. The Codechef logo on the top only links back to the Forum homepage, but how to get back to CodeChef homepage from here?
View ArticleFast method Prime number generation
I am trying to write the code for PRIME1 problem here http://www.spoj.pl/problems/PRIME1 But I am getting a time limit exceeded error. I have employed the most basic algorithm for generating prime...
View ArticlePlease help in this problem
Can anyone help me in solving this problem ? **SALES** Bosco has gotten his hands on B (1 \leq B \leq 50) dollars! Being a Magic the Gatheringâ„¢ enthusiast, he wishes to spend some amount of his budget...
View ArticlePALIN: Getting wa
The site refuses to accept my solution and judges it as wrong. I've tried various combinations and my output matches with that of the accepted solutions. Could you please tell me what errors might have...
View ArticleUseless Questions
The amount of questions in some problems is insane. Is there anyway some old questions could be deleted once the count of comments exceeds a limit? For instance -...
View ArticleWhy such a huge difference is there in time and memory used??
I have a few doubts related to execution time ..(though they are not much related to eachother.)1.I submitted these two solutions for kingcon problem (in APRIL13) first and second The only difference...
View ArticleDoubt in trie
can someone explain me,what is the difference between radix tree and suffix tree??
View ArticleCHEFTEAM - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSETTER'S SOLUTIONCan be found here.TESTER'S SOLUTIONCan be found here.
View ArticlePRIME1 WA....
#include<stdio.h> #include<math.h> int isprime(unsigned long x) { int i,c=0; if(x==1) return 0; else if(x==2 || x==3) return 1; else if(x%2==0) return 0; else if(x%3==0) return 0; else {...
View ArticleIs it possible in less than linear time?
Given a function Know(A,B) If A knows B then the function returns true else false. Now in a given set of people a celebrity is one who is known by other people and he doesnt know any one. Given an...
View ArticleWA in Rescue Balin
I dont understand why this code is giving WA forques: http://ww2.codechef.com/problems/BYTESDcode: http://ideone.com/vEiSdFcan ne1 pls point out the error...or find a case where the code may be...
View ArticleJohnny and the Beanstalk problem
First, of all description of this question is too bad. But, i managed to solve it.But, i have a doubt in this problem when the previous count or sum is less than the current input of the user then i...
View ArticlePlease tell what's wrong in input way in ALGFACT Problem
Wrong answer is shown on submission. My code is in Python:import math N=input("Enter the value of N: ") if N<10: i=0 T=[0,1,2,3,4,5,6,7,8,9] result=T print "Enter terms" while (i<N): T[i]=input()...
View Article