QUICKSORT not working as required.
#include<stdio.h> #include<stdlib.h> int partition(int *a,int p, int q) { int key=a[q],t,i,j=q-1; i=p; while(i<j){ while(a[i]<key&&i<q) i++;...
View ArticleA small doubt in Binary indexed tree
Given an array, 1-D, how e have to kake the corresponding BIT for that? ex. if the array is 10 8 5 9 1 what will the BIT for this?
View ArticleLAPIN - WA Help..!!
Here is the link to my solution for LAPIN : http://www.codechef.com/viewsolution/3276217 First I divided the char array into two halves then I sorted both and compare both for equality. But it is...
View ArticleCan I have multiple accounts on CodeChef?
Is having multiple accounts is against CodeChef's Code Of Conduct.
View ArticleHow to change my CodeChef user name
I want to change my CodeChef user name. Is there a feature available?
View ArticleA3 - "The Guessing Game" Editorial / Explanation
does anyone have any DEEPER notion about A3 - The Guessing Game: http://www.codechef.com/problems/A3 approach? thanx beforehand.edit: pls look below for explanation. and pls show your gratitude by...
View Articleinput in python
How can we input data in python like that of ideone. like i have input stored in file and i want to give whole input at once through stdin.
View ArticleSPOJ - BITMAP (Getting TLE)
I was trying this problem on spoj - http://www.spoj.com/problems/BITMAPI am pushing all the white cells on a queue, and performing a BFS. The soultion times out. Here is my code -...
View Articlepassword protection code
in output,it is telling invalid password even though i hav entered right password(helloINDIA).#include <stdio.h> #include<string.h> #include<conio.h> void main() { char...
View Articleregarding rank
why my rank in short event is NA even though m participating in short events & successfully submitted code in january cook off 2014
View ArticleRANK showing NA even with rating 1116
last month my rank was 5211/3688 in short challenge....this month its showing NA after sunday's cook off....
View Articleproblems missing in the practice section(easy)
lot of problems are missing from the practice section.i solved few practice(easy) section problems.but they are removed from the practice section and no. of submissions of the problems are also...
View Articlenot getting any error in codeblock ,but my code is not accepted
#include<stdio.h> int main() { int n,a[10],i; puts("enter the range"); scanf("%d",&n); puts("enter the numbers"); for(i=0;i<n;i++) { scanf("%d",&a[i]); } puts("the nos. are");...
View ArticleHow to configure Eclipse to parse a contest?
Timed contests are all about getting the idea about a problem as fast as you can and then implement that idea, run the sample inputs, find and debug any errors and submit at the earliest possible time...
View ArticleSame solution submitted twice and execution time differs by 0.6 points why?
Please give explanation.
View ArticleARRANGE - runtime error
prob: http://www.codechef.com/problems/ARRANGEthe same code below works fine and outputs what is expected at http://www.compileonline.com however, it gives "runtime error" on both ideone, and codechef....
View ArticleMSTICK- WA
implenting basic segment tree..cross checked many times..still getting wrong answer..pls help where am i doing wrong..? here is my code's link-.http://www.codechef.com/viewsolution/2172202
View Articlemstick_error
#mkagenius please check my solution. I m not able to find why m getting wrong answer..My soln id is 3283645. Please help.. Anyone pls help.. My soln is :- http://ideone.com/sbcpML
View ArticlePrize in contests
Hi all! i'm new here so, just wanted 2 noe: What are prizes/prize money for different contests in Codechef?
View Articlegetting wa chefluck
http://www.codechef.com/viewsolution/3283054 please help tried many test cases
View Article