IITI13 - Editorial
Problem : Sherlock and CiphersDifficulty : CakewalkPrerequisites :NoneProblem :Given an array A and string S, swap ith and A[ith] character of S in order 1 to N.Explanation :This is a straightforward...
View ArticleFARIDA SPOJ WA Please help
Can someone please point out a corner case? I have created a separate array S, where I store the max sum up till a number A[i], with A[i] included. Therefore, my logical statement becomes S[i] =...
View ArticleCDCRFT14 BIT Editorial
PROBLEM LINK:ContestDIFFICULTY:CAKEWALKPROBLEM:Print sum of set bits of all numbers from 1 to N.QUICK EXPLANATION:Simple simulation. For each number we count set bits and add them to the final answer....
View ArticleIITI14 - Editorial
Problem : Sherlock and the Perfect arrayDifficulty :Easy, Ad-hocPre-requisites :Simple MathProblem :Given an array A of size N and a number K, one operation is defined: Select any two distinct indices...
View ArticleCDCRFT14 ATOM Editorial
PROBLEM LINK:ContestDIFFICULTY:CAKEWALKPROBLEM:Given initial atoms in the lab (N), multiplication rate per second (K) and the maximum limit of atoms (M), print the time at which reaction should be...
View ArticleCDCRFT14 SUBBXOR Editorial
PROBLEM LINK:ContestDIFFICULTY:MEDIUMPROBLEM:Given an array of positive integers and a number K, find the number of subarrays whose XOR is less than K. XOR of subarray is defined as XOR of all elements...
View ArticleCDCRFT14 COPRIME Editorial
PROBLEM LINK:ContestDIFFICULTY:HARDPREREQUISITES:Bipartite GraphMaximum Bipartite MatchingMinimum Vertex CoverKonig's TheoremEXPLANATION:Problem boils down to:Given a bipartite graph with directed...
View ArticleMSTICK - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...
View ArticleMIME2 - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThe solution proceeds in two steps. The first step is to read and store pairs of strings, and the second step is to perform a series of lookups. The...
View Articlefyi - iit kanpur chaos
http://techkriti.org/Competitions/competition.php#chaoshttps://www.facebook.com/events/420678071400690/
View ArticleCDCRFT14 CIRCLES Editorial
PROBLEM LINK:ContestDIFFICULTY:HARD PREREQUISITES:CircumcenterQuadratic Equations Basic Geometry PROBLEM:Given two circles in 3 dimensions (denoted using 3 points on each circle) find whether they are...
View ArticleIs 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 ArticleCDCRFT14 BALLS Editorial
PROBLEM LINK:ContestDIFFICULTY:EASYPROBLEM:Given N(<=10^5) balls, each with a number on top and bottom, find minimum number of flips that can make at least half of the balls show same number on...
View Articlefierce battles wa
http://www.codechef.com/viewsolution/3337330my code shows wa again and again showing correct ans for many test casesplease helpthanks in advance!!problem link: http://www.codechef.com/problems/DRGNBOOL
View ArticleDoes CodeChef have any Code Of Conduct?
I am new to CodeChef. I am not sure what can be considered as an improper conduct on this website. I do not want to be penalized for doing something unknowingly which is not the accepted behavior. Is...
View ArticleWhat 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 ArticleEasy - - Birthday Candles
http://www.codechef.com/problems/CANDLE/ For this my code is as follows... plz help to find my mistake..#include<iostream> #include<math.h> using namespace std; int main() { int t;...
View ArticleSuggestion: Remove Successful Submissions Column
On a problem page, there is always this box on the right which lists out the best submissions for the problem. I find it out of place here, and it reduces the width of the problem statement. Maybe the...
View ArticleSMHTD - Editorial
PROBLEM LINK:http://www.codechef.com/SMHT2014/problems/SMHTDDIFFICULTY:EASY-MEDIUMPREREQUISITES:Longest Increasing subsequence.EXPLANATIONFor each element of modified sequence we have bi >= i...
View ArticleImage Processing (Recognition)
Hi all,Problem Statement I need to recognize the word when a sign is performed.I am currently working on a project for Indian Sign Language Recognition. I've segmented the head and hand regions. I've...
View Article