May challenge 2014 , Sereja and Game problem
Can anybody tell me what is the meaning of optimally in this problem ?
View ArticleAlgorithms and data structures needs to be studied to become good in...
I'm naive and what should I do to gather knowledge of different algorithms and data structures which are necessary to become good in programming contest!
View ArticleLittle Elephant and Balloons
Hi guys i have been working on the LEBALONS problem it has two ambiguitiesIts not mentioned if there are balloons with same color what are the possible edge condiions ?Like 0 minimum color ..
View ArticleNext Pallindrome
Can, anybody help me this code of next pallindrome given below. Problem link:http://www.codechef.com/problems/PALINIt works for the test cases but is not accepted by the...
View ArticleSegmentation fault(core dumped)PZZhelp
include<stdio.h>include<conio.h>int main() { int i,j,k,T,N[10],S[10]; scanf("%d",&T); for(i=0;i<T;i++) { scanf("%d",&N[i]); } for(j=0;j<T;j++) { S[i]=(N[i]*(N[i]+1))/2; }...
View ArticleSegmentation Fault
#include<stdio.h> include<conio.h>int main() { int i,j,k,T; long int N[1000000],S[1000000]; scanf("%d",&T); for(i=0;i<T;i++) { scanf("\n%d",&N[i]); } for(j=0;j<T;j++) {...
View ArticleDeclaring a array
How can i declare a int array of 1000000 elements.I know i can use static however using static would mean that the value of array would remain same through every loop therefore leading to wrong...
View ArticleInformation regarding time limit exceeded
Suppose I have a program which after submission shows time limit exceeded. Does this mean that it has been able to clear all the test cases but could not do so within the required timeORthat before it...
View ArticleWrong Answer
Hi, I've tried the code for "stone" problem but it says wrong answer but on my machine It works fine.Why your machine says 'wrong answer'.Please help meThanks
View ArticleContest problem no submission
I found that contest that have been taken place in past now do not have "submit" button . How can one practice on these contest problems now ??
View ArticleLEBALONS doubt
HelloMaybe it's too obvious or something everyone would have learned but I have been reading the LEBALONS problem over and over again but I am unable to comprehend this: What does expected cost of gift...
View ArticleRRStone checkpoint
I have gotten a WA for a couple of times now. Suppose you have an input like 5 2 and you input 2 3 7 8 omitting the last number. What am I suppose to get with this? Is the last absent number to be...
View ArticleWA in CHEFBM always
first I was getting the segmentation error .. now when I solved it I always get a wrong answer what to do in the case of n=1,m=1
View ArticleRRSTONE Checkpoint
I have gotten a WA for a couple of times now. Suppose you have an input like 5 2 and you input 2 3 7 8 omitting the last number. What am I suppose to get with this? Is the last absent number to be...
View ArticleThe Lead Game....HELP PLEASE
Can somebody please look at my code its submission. The program works just fine for me. The out put with any number entered is right and in the event of a tie the player who had the highest score first...
View ArticleCan we search all the persons in codechef who are from the same colleage?
can i search for all the people who particpate in codechef contests form a particular colleage? We can check only if know their handle.but is there any other way to check? In topcoder an CF we can do...
View ArticleOJUMPS - WA
HI I AM NEW TO CODE CHEF . AND I TRIED TO UPLOAD MY PROGRAM IN JAVA ...ACTUALLY I WAS USING JDK 8 (LATEST VERSION)BUT NOW IT SAYS WRONG ANSWER , WHAT COULD BE THE REASON ?? PROGRAM IS WORKING FINE ON...
View ArticleStone May Long
My code is running perfect on my computer could any one suggest any common mistake i may be doing
View ArticleJava NZEC runtime error
I wrote a program for jump chef problem. It worked perfectly in my local machine, it didnt throw ny kind of exception and errors but when I tried to submit it online in codechef it returned NZEC...
View Article