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

answers by symmetry but no proof

http://www.codechef.com/problems/J7I submitted this problem and got "correct ans",the problem is really simple if u assume that the rectangle is a square.I saw about 15 other submissions all assuming...

View Article


UNLUCKY NUMBERS

Hi everyone,I'm struggling with this problem, and I don't have any idea to do it yet. Does anyone know how to solve it?A positive integer is called a lucky number when the sum of some of its digits...

View Article


runtime error..help me out plzz!!

#include<stdio.h> void main() { int tc,num,i; scanf("%d",&tc); for(i=tc;i>0;i--) { scanf("%d",&num); printf("%d\n",fact(num)); } } int fact(int n) { int c,f=1; for(c=1;c<=n;c++) {...

View Article

why runtime error

code working in my compiler

View Article

help in Best box problem..

i am having a confusion in the best box problem http://www.codechef.com/problems/J7 tel me if i m correct.. p cm wire ie 4l+4b+4h=p and s cm2 are ie 2(lb+bh+hl)=sthis is how 2 equations are need to be...

View Article


WA in TOURNAM :(

I was trying to solve this problem but i don't know why i'm getting WA.here is my solution I have tested my solution against a accpeted one one ideone, but it is givin correct output Please anyone help...

View Article

June Long Contest

I dont know if I'm allowed to ask this or not, but I need help from someone who has completed the problem DELISH, and to check my code in JAVA. I am not able to find why its giving WA on codechef but...

View Article

how to detect arrow key inputs in c without using getch of conio.h.

well i am trying to create a game in c which requires the use of arrow keys as input. the book where i came across this question gives a function definition that is required to detect arrow key inputs....

View Article


a factory has three divisions and stocks 4 categories of products. an...

to represent each transaction. i have no clue as to what the question means in the first place. i mean a factory produces products why is this one receiving them. what should we do with regards to the...

View Article


plz help for LAPIN

i dont know whether it is allowed to ask this or not... can anybody tell why my lapindrome program is showing Wrong Result. http://www.codechef.com/viewsolution/2262864

View Article

intest:enormous input

import java.util.Scanner; class test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count=0; int o1=sc.nextInt(); int o2=sc.nextInt(); while(o1>0) { int...

View Article

preorder traversal of binary tree

preorder traversal of binary tree in c using iterative solution with node having a parent pointer any link to source code of this problem

View Article

Discussing CodeChef's problem on other platforms?

The Long contest at codechef has been a success due to its challenging status but of late during the last 2 competitions , I found out that a lot of lot of people asked the questions as it is on...

View Article


Why table may be outer joined to at most one other table ?

Here is a question which has been boggling me for few days now, and I searched and searched but couldn't find any convincing answer !Simple question, why is it restricted to have 2 Outer Joins in SQL,...

View Article

whats the use of fflush function in c. when to use it and what does it do....

fflush function is something that i came across in a chapter on structures in c

View Article


number range

can anyone tell me how to deal with a number in range of -(10^9)^(10^9)<number<(10^9)^(10^9)..........

View Article

atm getting wrong answer

Here, is my code and i am continuously getting wrong answer and cannot find the reason why.. Please help?import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner...

View Article


Ratings update for June 13 long contest .

@admin : When are the ratings likely to be updated ? I know you have cheating cases to solve . But just an idea when you might run the rating algo so that we can see our new ratings . Thanks in advance...

View Article

Wrong Answer after running for 1.14secs,what can be possible bug?

I am solving a question of June Challenge and my solution terminates with WA after running for 1.14 seconds. I am unable to debug it,everything seems okay. What can be a possible bug? Whether long...

View Article

Acces Denied on problems page for june Contest

If I try to enter a problem page the following output "You are not authorized to access this page.I hope you'll fix this:).

View Article
Browsing all 39796 articles
Browse latest View live


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