getting 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 Articlechef and func
what is output if -(10^11)%(10^9+7)?? is it ans + (10^9+7) or ans%(10^9+7)+(10^9+7)???
View Articlealternative for nested loops in c
if there any alternative for nested loops to reduce execution time?
View Articlechef and digit jump
I wrote an o(n) code for the chef and digit question.but TLE is coming.So does the question demand even better algorithm or i have done some mistake in coding?
View ArticleChef Digit Jump clarificiation: can chef jump back to more than one index if...
What is meant by Chef can't jump out from sequence, can he jump back to same same numberWhat is result for this test case0 1 2 3 4 5 9 6 7 8 9 0 1 2 3 4 5is it 5: 0 - 11 -> 10 -> 6 -> 5 ->...
View Articlewrong answer for problem codechef and subarray
i m getting wrong answer but when i run the problem on my system i m getting correct answer for various inputs i want to know that for which input my code produces wrong output
View Articlequestion regarding [forgot passward]
plz provide answer for following qstn 1) .00000 2) 00000 3) 000.00 4) 00567000 5)-0.0
View ArticleSIGABRT error in FORGETPW (C++)
My code for FORGETPW is running fine on my pc , but when i am submitting my solution on codechef i am getting SIGABRT error. I am coding in c++. Please Help !!!!
View ArticleClarification in Forgot Password
Can anyone give me more test case because my program is working properly for the given test cases but it is showing wrong answer
View ArticleFacebook application
It is necesary to have a webspace to build a facebook application for any platform.?
View ArticleSubmit external contest's question's
can you submit external contest's answer's after it's over just to check whether am i right or wrong?
View Articleclarification in Forgot Password
'decimal number' does it mean that S evaluates to be like "-034920.20390942" or "+03948.234829300" after the replacements?
View Article