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

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 Article


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


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

Clarification in DIGJUMP

In DIGJUMP problem what does 1 (Si-1) and 1 (Si+1) mean?? Please explain.

View Article

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


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

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

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


Time. 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 Article


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

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

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

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
Browsing all 40121 articles
Browse latest View live


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