Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live
↧

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 Article


Chef and Functions

Getting TLE in chef and function....reasons???

View Article


Problem 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 Article

DIGJUMP - (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 Article

creation 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 Article


guessing 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 Article

input 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 Article

guessing the game

getting tle in guessing game bcoz of nested loops ,, any alternative??

View Article


chef 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 Article


alternative for nested loops in c

if there any alternative for nested loops to reduce execution time?

View Article

chef 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 Article

Chef 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 Article

wrong 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 Article


question regarding [forgot passward]

plz provide answer for following qstn 1) .00000 2) 00000 3) 000.00 4) 00567000 5)-0.0

View Article

SIGABRT 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 Article


Clarification 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 Article

SPAM POST ....

SPAM - POST DELETED

View Article


Facebook application

It is necesary to have a webspace to build a facebook application for any platform.?

View Article

Submit 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 Article

clarification in Forgot Password

'decimal number' does it mean that S evaluates to be like "-034920.20390942" or "+03948.234829300" after the replacements?

View Article
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>