Why are these solutions of different users from the April Long Fault question...
I was quite wondered how 16 people of the same institution could think of the same solution which was good enough for a 14th position . Admins night want to have a look at this...
View ArticleRuby Input/Output
what are the best input methods for Ruby?I tried using gets and puts for the problem cylinder earlier in the April Challenge.linkbut it seems they are not good enough for large input files. Are there...
View ArticleCodeChef Profile Badge for Website
Why CodeChef does not provide facility of showcasing/displaying the CC User Profile flair/badges on Personal Website?TopCoderEg:FaceBookEg:CodechefCreate Your BadgeStackOverflowEg: ?
View ArticleNzec Runtym error on spoj server?
there is some problem on spoj server . Most of the users getting runtym NZEC in all languages(C,C++ etc..).. now it's seems that same thing happening on codechef. Please check it out...
View ArticleWhat's the name of this technique?
I am reading some solutions of the problem AMSTRING (from this April's cook off). It seems that most solutions (including setter's one) use same loop structure like this.for(d=1-n;d<n;d++) { .... }...
View ArticleAMMEAT2 - Editorial
Problem Link:PracticeContestDifficulty:SIMPLEPre-requisites:Ad-hocProblem:Given integers N and K, pick K integers in 1...N, such that no two chosen integers are relatively prime.Explanation:Let us try...
View ArticleFIRESC - March Long
question:- http://www.codechef.com/MARCH13/problems/FIRESCmy solution :- http://www.codechef.com/viewsolution/1930307can anyone help me.... I am getting WA....thank you in advance
View ArticleUnavailable Solutions
I have found that most of submissions from the questions of the previous Long Contests and External Contests are being locked and are not open. Since, I am interested in solving new and different...
View ArticleSize of Array
I encountered a problem while coding for a program. When we pass an array through reference to a function then how can we know about the size of the array that is passed . Remember that we are not...
View ArticleSplitting the set of numbrs into n partition
How can we split the set of numbers in n parts. For eg set {1,2,3,4,5,6}, we have to split it in 3 parts using all the elements for eg valid split could be {123,45,6} , {14,23,56} , {13,245,6} etc.
View ArticleLEFEED - Editorial
Problem Link:PracticeContestDifficulty:MediumPre-requisites:ProbabilityProblem:Given integers N and M, and an array C having N elements in the range [0, M], you replace every 0 in the array with an...
View ArticleAMSTRING - Editorial
Problem Link:PracticeContestDifficulty:EASYPre-requisites:Sliding window, stringsProblem:Given two strings A and B of equal length N, find how many substrings of equal length have a difference not...
View ArticleAndrew and the Meatballs
below is code in php. its showing wrong answer please help#!C:\wamp\bin\php\php5.3.13\php.exe -q <?php fscanf(STDIN,"%d",$tt); $res[]=''; for($i=0;$i<$tt;$i++){ fscanf(STDIN,"%d %d",$n,$k);...
View ArticleAMMEAT - Editorial
Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:ad-hocProblem:You have N plates of meatballs, the ith having Pi meatballs. What is the minimum number of plates you need to choose so that...
View Articlehelp [PAYING UP]
hi.. i am not getting any logic for this problem http://www.codechef.com/problems/MARCHA1plz plz help... i have tried it several times problem in applying bitwise operatorsif there is any other...
View ArticleAMBALLS - Editorial
Problem Link:PracticeContestDifficulty:MediumPre-requisites:Dynamic Programming, CombinatoricsProblem:You are given balls of N different colours. There are C[i] balls of colour i. Find how many ways...
View ArticleApril Long Fault Tolerance editorial explanation?
I didn't get the gaussian elimination method. Here servers and chunks are denoted along rows and columns respectively, then to convert 1 into 0 they Xor two columns. But isn't it conceptually wrong to...
View ArticleINVBINCF - Editorial (CONSIDERABLY IMPROVED!!!)
PROBLEM LINK:PracticeContestAuthor:Anton LunyovTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:HARDPREREQUISITES:Binomial coefficients modulo prime powers, 128-bit arithmeticPROBLEM:For the...
View ArticleWrong Answer for transform an expression
This is the code for reverse polish notation. When I run it on unix it works fine but codechef says wrong answer. Please help.include<stdio.h>include<string.h>void push(char); void pop();...
View ArticleFAULT - Editorial
PROBLEM LINK:PracticeContestAuthor:David StolpTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:CHALLENGEPREREQUISITES:Bitwise operationsPROBLEM:The best described in the problem...
View Article