wa chef and cake
i have tried for many test cases my output is correct but it is showing waalso do the test cases include this type of input :20 20 1 130 30 11 11my code:...
View Articlesigabrt in my code for little elephants and strings
http://www.codechef.com/viewsolution/3598927 plz help
View ArticlePHP is BROKEN on CodeChef
1) I have 15+ years' experience programming in dozens of languages2) I have spent ~4 hours searching Google and the Codechef forums for a solution. Please don't respond with "read the manual"As far as...
View Articleexplain this concept
int arr[3][2]={{1,2},{3,4},{5,6}}; printf("%d %d %d",arr[0][3],arr[1][2],arr[2][0]); can anyone explain how can we access elements in array using notations used in printf
View Articlesigsegv in delish
can anyone suggest changes in my code it is giving run time error,i beleive the the logic is correct but it gives sigsegv.problem: http://www.codechef.com/problems/DELISHmy code:...
View ArticleBEX - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESStack Data StructurePROBLEMHarry has a lot of books messed on the floor. He keeps a pile of books. At any time, he can put a book that has some...
View ArticleSorting large array of long long int
Hey guys, i'm working on a problem where I have to sort large array of long long int ( array size of nearly 1000000). I've tried to do it with merge sort as it has a complexity of O(n*log(n)) in worst...
View ArticleWant Some Test Cases for Little Chef And Numbers?
I tried Some of my own test cases,code working fine..but getting WA after submitting.. Can any one provide some test cases to check where Iam actually getting WA
View Articledoubt chef and cake
i have tried for many test cases my output is correct but it is showing waalso do the test cases include this type of input :20 20 1 130 30 11 11my code:...
View Articlesorting array of struct
hey why code is not able to sort on the basis of "e" when the inputs are : 100 4,4 5,200 6,2 5//JUST PRACTISING #include<cstdio> #include<iostream> #include<list>...
View Articlebest way to sort an array
pleas can anyone tell me best way to sort an array.....also explain its algorithm and its working. best way means least complexity.
View ArticleTest Cases Still Weak for SSTORY even after Re-judge
One of my solutions was still Accepted though it should give wrong answer. My code gave 'c' for s1="aecd" and s2="acad", where the answer should be 'a'.
View Articlecan someone please explain the solution to this problem?
Can someone please explain to me what the logic behind the solution to this problem is:"A Simple Equation" - http://www.codechef.com/problems/EQUATIONI looked at a few solutions that produced the...
View Articleproblem with contest configuration
hello,am getting problem with contest configuration error whenever i try to submit a solution.Are others also getting the same error?and what is this error?
View ArticleThree way communication giving wrong output on codechef
# include <stdio.h> # include <math.h> inline int scan() { char c = getchar_unlocked(); while(c < '0' && c > '9') c = getchar_unlocked(); int n = 0; while(c >= '0'...
View Articlewhat is o/p and explain why like that for below c program
{ float x=1.1; while(x==1.1) { printf("%f\n",x); x=x-0.1; } return 0; }
View ArticleSuggestion: Custom testing for codechef
Just like we have custom testing for codeforces, why can't we have something similar for codechef also?This will solve the problem of ideone leaked solutions and will also be very helpful. :DJust my...
View ArticleExtending MARCH14
Regrading of SSTORY that happened yesterday suprised me. I didn't have enough time available so I decided to do first six problems last week, and some more tonight. It all started out great, but now,...
View Articlehow to know when to apply Binary indexed Tree??
Had been studying BIT past few days and have got the idea how does it work but unable to figure when it is used like how to know it is being used in http://www.spoj.com/problems/CTRICK/ and...
View ArticleMIKE 3 output
mine is able to give 12 for this test case ( http://discuss.codechef.com/questions/39472/just-reevaluate-mike3 ) but still WA... I am new on codechef plz tell what is output format for this problem?...
View Article