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

The lead game : what is wrong with my code?

The code chef compiler is giving wrong answer to this code....but is working fine on my PC :/http://www.codechef.com/viewsolution/3611816#include<stdio.h> int main() { int...

View Article


ROTSTRNG - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYMEDIUMEXPLANATIONWe are given a string S and we keep rotating it till we get back to the string S. Note that this can always be possible, if we rotate S a multiple...

View Article


How can I restore my answer from deletion in "discuss"?

I deleted my answer , how can i restor it back .http://discuss.codechef.com/questions/39595/best-way-to-sort-an-arrayThank you

View Article

CANDLE - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThe answer will always be either a repdigit (a number composed of repeated instances of the same digit) or a power of 10. We find the smallest power...

View Article

Is it possible to solve TSORT with Haskell?

I recently decided to learn Haskell by solving Code Chef problems. Unfortunately, the problem TSORT is proving to be quite a challenge (it should not, I think).As can be seen from the list of...

View Article


Account Deactivation

I created a new account on CodeChef and now how to inform the CodeChef team to deactivate my previous account ?

View Article

TLE in BINTOUR while submitting in python but a very decent execution time...

Regarding BINTOUR (MARCH 2014) it's an easy question and only needed some mathematical operations to be done to arrive at solution so python was my language of choice , but my Solution in python is...

View Article

March14 - SSTORY Problem

How come a problem similar to that of already existing one on spoj: LCS is appeared in the long contest?Aren't there any other problems available (or for that case a good modified version of this...

View Article


Walk - Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:ProgrammingPROBLEM:Given a sequence of numbers W[0..N-1], find out a...

View Article


Image may be NSFW.
Clik here to view.

BINTOUR - Editorial

PROBLEM LINK:PracticeContestAuthor:Constantine SokolTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:CombinationPROBLEM:For each of 2^K players labeled by 1 .. 2^K, how many...

View Article

Doubt in MIKE3

I just want to know why my this submission didn't worked but a recursive brute force worked. Can you give me a case where it fails. Thank you :)I updated the link. Sorry for the confusion.

View Article

Life, the Universe, and Everything :java Wrong Answer coming

Please check what is the mistake in this . I am getting wrong answer for this.Thanksclass LifeUniverse{ public static void main(String[] args){ String input=""; for(int i=0; i<args.length;i++){...

View Article

TMSLT - Editorial

PROBLEM LINK:PracticeContestAuthor:ShipluTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:SortPROBLEM:Given a random sequence of N numbers, a[0..N-1], sort them in order and...

View Article


find the matching between these 2 slolutions for the 'Binary Tournaments'...

find the matching between these 2 slolutions?http://www.codechef.com/viewsolution/3530837http://www.codechef.com/viewsolution/3526359

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


sstory runtime error

Plz someone help me debug this code....When I submitted it showed a runtime error(SIGABRT)...Plz can someone point out the error??This the problem link http://www.codechef.com/MARCH14/problems/SSTORY/...

View Article

PROSUM...TLE

I have written the following code but am getting a TLE.Could someone please tell me how to decrease the time complexity.Thanks in advance.Following is the link of the code : http://ideone.com/xtRtMI

View Article


changing text color in turbo c compiler

Hi there!! i am unable to change color of text in turbo c compiler using textcolor() function...... M using 32-bit windows 7 pls help

View Article

wa in SSTORY suffix arrays

i kept getting wa in suffix arrays could the author @kuruma or anyone provide good test cases

View Article

programming

hi guys am a computer science undergraduate student from kenya. ..... my interest in coding grew suddenly and am studing c .. ive come a cross the use of 4 when using the inter conversion sign eg...

View Article
Browsing all 39796 articles
Browse latest View live


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