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

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 Article


sigabrt in my code for little elephants and strings

http://www.codechef.com/viewsolution/3598927 plz help

View Article


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

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

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


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

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

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


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


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

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

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

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


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

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


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

Suggestion: 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 Article


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

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

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


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