Compiler and parsers
Should the sequence always begin with "<" Is the answer to the input ><> 0 or 2?
View ArticleRR Stone CONSTRAINTS
Code perfectly works with all test cases like boundary cases, intermediate cases, time limits. But when it is submitted to code chef they are giving WA. Thinking over this and trying all the...
View ArticleCompilers and Parsers ... need the worst testcase
i am getting wrong answer after submitting but it works perfectly on my compiler
View ArticleRun Time Error..
Why i am having run time error, when i submit the code of may challenge code : SSTONE. After i change the variable name ,this problem still occurring..
View ArticleDoes Time limit exceeded or memory limit exceeded means our answer was correct?
Does time limit exceed means our answer was correct but time to run was more? I am getting time limit exceed error, Time to run shown as 1.01 seconds while under the question its shown as 1-2 seconds....
View ArticleRuntime Error
Please explain Why i get SIGSEGV error and give some tips to remove SIGSEGV error from the code.
View Articleclarification of question LEBALON
for a given color if there are two possibilities....do we have to consider both or the least one.12 11 101 40is the answer ((10)+(40)+(40+10))/3=100/3=33.3333333 or is the answer 10 just beacause it is...
View ArticleViolataion Of Codechef Code Of Conduct
Seems like plenty of fake codechef profiles have been made recently. Some of them...
View Articletest cases for Chef-jumping
I am currently working on the May contest Chef-jumping problem. I tried all the possible cases upto 7 digits input and GETTING THE DESIRED CORRECT OUTPUT on my terminal. But the codechef compiler...
View ArticleExplain it ?
According to definition of prefix on Wikipedia :" A proper prefix of a string is not equal to the string itself."so how for "test case 1: <<>> " answer 4 is possible ? plz explain if i am...
View ArticleUnable to post doubt on problem page
I have a certain doubt in the problem of current ongoing contest but I am unable to post doubt on the respective problem page.I've tried it several times but always a message pops up showing that my...
View Articlewhy i am getting wrong answer in this code for farmer feb problem
include<stdio.h>int main() {int t,x,y,i,c=1,j; int p=0; scanf("%d\n",&t); while(t--) { scanf("%d%d",&x,&y); for(i=y+x+1;i<2010;i++) { for(j=2;j<i;j++) { if(i%j==0)...
View Articlei want to know how this is runtime error sissegv
for(i=0;i<n;i++) { b[i]=0; for(j=0;j<m-1;j++) { if(a[i][j]>a[i][j+1]) {b[i]=-1; break;} } }
View Articlewrong answer
Hi everybody, I just coded for May'14 challenge, whose problem title is chef jump. I've coded it in my own editor and ran it through terminal(I use linux). It ran very well. I copied and pasted the...
View ArticleSTONES - WA
Hi..I have been getting WA for the STONES problem even though the mentioned test cases and some of my own are passing. Can somebody please have a look and see if I have missed any boundary condition or...
View Article[Stone Prob] Anyone clearify doubt in problem statement
whether the MAX calculation and (MAX-Ai) operation has to be perform for every of K turn???
View Article:'( Why I'm getting TLE in the problem "Compilers and parsers"??
I tried so many tricks to get AC, for example: check if the first char is a '<' (else the answer is 0), another is: check if the string ends in a substr of type "<<<<" if it is I'm going...
View ArticleChef and strange matrix (chefbm)
the p commands will always be in increasing order right ? or is it possible that some input can be like this one also4 4 62 23 22 34 34 43 1
View Articlegetting input and output ?
Hi coders, I am new to CodeChef.I am participating in May Challenge 2014. I am able to solve problem and getting correct answer in my pc. But codechef says it is wrong. I think my I/O is problem....
View Article