simple problem still getting wrong answer please help
http://www.codechef.com/viewsolution/3958031 this is my code and i think my logic is correct but still its showing wrong answer can somebody tell me the fault. thanks in advance.
View ArticleWhy am I getting wrong answer
//CODE DELETED I've tried to submit it a hell lot of times, but the message displayed is "Wrong Answer".I can't understand the reason as I've checked my solution for most of the possible cases on my...
View Articlenzec error
this is the code i submitted for wString of june challenge http://www.codechef.com/viewsolution/2276800 it gives me a runtime error can anyone point out the error? thanx in advance! :)
View ArticleClarification in DIGJUMP
In DIGJUMP problem what does 1 (Si-1) and 1 (Si+1) mean?? Please explain.
View ArticleGreat job!
My solution to http://www.codechef.com/JUNE14/problems/GUESS didn't acccepted, cauze I read the numbers in scanf with %I64d, when I read %lld, it's instantly accepted! Yeah, I tried yesterday 4 hours...
View ArticleBISHOPS problem SPOJ
I am trying to solve Bishops problem on SPOJ. I am getting a TLE. There are actually 3 for loops effectively which on maximum runs for 100 times, even though TLE!!! Can some one point out inefficient...
View ArticleNZEC Runtime error for ForgetPassword
I am new to ChefCode and i am getting error of NZEC. Below is my code. Please share your knowledge//CODE DELETED
View Articleknight move problem(there is a wrong sign showing in code but i cant figure out)
knight move problem(there is a wrong sign showing in code but i cant figure out) the code is include<cstdio>include<algorithm>include<string.h>include <cstdlib>using namespace...
View ArticleTime. is important
If I input a sentence in one time and I input the sentence using getchar one by one then will the time taken be same
View ArticleWhat kind of comment should I post on the problem page?
Is there any comment posting guideline? I am new on this website. I have so many doubts while I participate in a contest. Can I ask them on the problem page by posting a comment? Will I be banned for...
View ArticleHow could I change size of stack?
I write on dec-cpp c++ 4.9.1 and my solution has Runtime Error(SIGSEGV) on problem Chef and Digit Jumps? What I shall to do?sry for my english.
View ArticleGETTING WRONG ANSWER
include<stdio.h>int main(){ int t,n,x[101],y[101],tr1,tr2,tr3,ash,resn,resd,i; float cx,cy; scanf("%d",&t); for(;t>0;t--){resn=0;resd=0; scanf("%d",&n);...
View Articlegetting wrong answer in small factorial
include<stdio.h>int main(){ int a,i,j; double z; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&j);="" for(z="1;j">0;j--) z=z*j; printf("%.0lf\n",z); } return 0; }
View ArticleProblem faced in reading individual character in FORGETPW
I need a generic piece of advise. While coding FORGETPW, it's troubling me to read individual character at the end of a line using scanf("%c"). scanf() is leaving '\n' unconsumed. To eat it up, I am...
View ArticleDIGJUMP - (n==1)
What should be the answer when there's only single digit? Will it be 1 or 0 ? Does a jump in itself counts when n is 1 ?
View Articlecreation of a matrix for a given graph and to represent it
link textthe figure named as figure 1 contains 3 graphs (regular, small world and random). Using regular graph we have to make a small world graph. Plz help me wid dis question
View Articleguessing game clarification for output
getting correct answers but will this output format be accepted in python 2 i print the solution as - print x,"/",y please clarify
View Articleinput clarification in guessing_game
i am getting wrong answer in guessing_game(seems to be problem with most of the wrong answers). I want clarification on the input as i seem to be running out of input which proves program wrong(might...
View Articleguessing the game
getting tle in guessing game bcoz of nested loops ,, any alternative??
View Article