BICO - Editorial
Problem Link:contest, practiceDifficulty: SimplePre-requisites: Combinatorics, GreedyProblem:We are given two integers G and R. Our task is to find the representation of G according to the following...
View Articleviews on codechef cook off
This happened again this month also,Problem choosers for contest are not going right towards deciding the level of problem. somehow at the moment I realize Travelling Chef Problem can be solved using...
View ArticleIS IT BLACK MAGIC OR WHAT??
http://www.codechef.com/viewsolution/3786033Please somebody explain this to me. This code is giving AC and it is just printing "-2.000000000"(without quotes).
View ArticleKINGSHIP - Editorial
PROBLEM LINK:PracticeContestAuthor:Shiplu HawladerTester:Tasnim Imran SunnyEditorialist:Lalit KunduDIFFICULTY:SIMPLE-EASY PREREQUISITES:Connected GraphTreePROBLEM:Connect all the N(<=10^5) cities to...
View ArticleCodeforces Coder-Strike 2014 - Round 2, problem: (C) Jeopardy! solution
Codeforces Coder-Strike 2014 - Round 2, problem: (C) Jeopardy! : http://codeforces.com/contest/413/problem/CCodeforces Coder-Strike 2014 - Round 2, problem: (C) Jeopardy! solution:...
View ArticleWhy codechef does not start hiring challenges?
I think if Codechef starts hiring challenges it will bring more enthusiasm among the users and it will also be beneficial for the users looking for a job.So, doesn't you think Codechef should start...
View ArticleCOOLING Problem
#include<stdio.h> #include<stdlib.h> int cnt,r[30],n,p[30]; void check(int pie) { int max=100,flag=0,index,i; for(i=0;i<n;i++) { if(r[i]>=pie&&r[i]<max) { index=i;...
View ArticleLMATRIX3 - Editorial
PROBLEM LINK:PracticeContestAuthor:Tiancheng LouTester:Shiplu Hawlader and Mahbubul HasanDIFFICULTY:HARDEXPLANATION(as written by ACRush):Step 1 :Reduce to : given a list of numbers 1, 2, ... p-1,...
View ArticleSIGSEV error in GERALD08.
This is my submission of GERALD08 http://www.codechef.com/viewsolution/3773036 , its running correct in my test cases but giving RE. Is it because my recursive dfs or something else.Can you pl tell why...
View ArticleSPREAD - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSETTER'S SOLUTIONCan be found here.TESTER'S SOLUTIONCan be found here.
View ArticleNZEC Error : Snape Problem
In the below JAVA program I am getting NZEC error without using try catch statement, but with try catch statement it runs fine . It happens almost always . I am not able to figure out that is this...
View ArticleHOTEL - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSeveral approaches exist to this problem. The simplest solution is to simply count the number of guests present at the hotel for each time from 0 to...
View ArticleGERALD08 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM-HARD PREREQUISITES:Blue-Red Hackenbush DFS, Graphs PROBLEM:Given a...
View ArticleDoubt in range update and point query in Binary Indexed Tree
Hello all.Can anyone explain why this code(for range update and point query) works? When i read BIT from topcoder tutorial they said that query(x) returns array[1]+array[2]...+array[x] but here...
View ArticleSEAGRP wrong answer
i am getting wrong answer for following question.Sereja has undirected graph, which consists of n vertexes and m edges. Sereja can delete edges from the graph. Now Sereja is interested in one question...
View ArticleRange query and range update using BIT ( fenwick tree )
I know Fenwick tree can be used to solve (point update) - (range query) and (range update) - (point query). Today i found on the internet that they can also be used for (range update) - (range query)....
View ArticleATM C++ Keep getting wrong answer
I keep getting the wrong answer and I don't know why.include <iostream>using namespace std; int main(int argc, const char * argv[]) {const float fee = 0.50; unsigned int widthdrawl = 0.00; float...
View ArticleInfinitum April 14 - HackerRank
Hi, fellow Coders.I am glad to invite you to join the amazing math contest Infinitum April'14, a monthly contest restricted to mathematics domain, held on HackerRank.Register at...
View ArticleWA in WORDS1
I got "Wrong Answer" in WORDS1 (C99 strict) but I have not idea what is wrong with it. Can anyone help me finding wrong part of my code or failing test cases? Here is my...
View Article