Segment tree
Was studying segment tree from http://www.geeksforgeeks.org/segment-tree-set-1-sum-of-given-range/but was uanble to figure out as why- ""int getMid(int s, int e) { return s + (e -s)/2; }"". Here the...
View ArticleReporting Cheating Cases
This is not a ques, but a request to all the people who want to report cheating cases. You all are most welcome to report such cases, but this is not the place to do it. You need to mail ne such cases...
View ArticleCOT5 editorial : Count on treaps , Feb challenge , is it posted ?
Is the editorial for COT5 ( Count on treaps ) , Feb challenge , posted . If posted please give a link . If not posted , @admin by when will it be posted .
View ArticleCOLARR-Editorial
PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:EasyPREREQUISITES:Ad-hoc, SortingPROBLEM:We are given a list of N cells, and a...
View ArticleEditorials On Codechef
@admin Can any user write editorial for the problems used in long and short contest or only authorised users have rights to do that.... ??
View ArticleEvaluation taking too much time!
@admin : Its taking around 2-5 min in evaluating a code ?
View ArticleCOT5-Editorial
PROBLEM LINK:PracticeContestAuthor:Tang FeihuTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:HardPREREQUISITES:Treap, Segment TreePROBLEM:Support the following operation on a...
View ArticleREMISS WRONG ANSWER
the link of my solution is http://www.codechef.com/viewsolution/3430014 please tell me the test cases for which it did not work.
View ArticlePrayaas-Microsoft Coding Contest in Technex'14
IIT(BHU),Varanasi 's annual Techno-management fest: Technex 2014, in association with Microsoft, presents PRAYAAS, a 4-day long programming challenge.Here contestants have to re-invent the existing...
View ArticleGetting wrong answer in marblegef.
i am getting wrong answer for this..my test cases work perfectly...i used segmented tree concept...its been 3 days i am behind the same problem....pls help...thanksmy solution is here...
View ArticleCHEATING IN FEBRUARY LONG..!!!!
5 exactly same solutions for LEMOVIE in February Long Contest..!!!http://www.codechef.com/viewsolution/3420127 - knb_dtuhttp://www.codechef.com/viewsolution/3421932 -...
View ArticleLife,the universe and everything
it is giving an NZEC error package easy; import java.util.Scanner;public class Life_universeandEverything { public static void main(String args[]) { int n; Scanner s=new Scanner(System.in);...
View ArticleLife,the Universe,and Everything
Can anyone tell me what is wrong with this code ?package easy; import java.util.Scanner; public class Life_universeandEverything { public static void main(String args[]) { System.out.println("Enter a...
View ArticleFIRESC run time error help
can someone suggest tom what is the problem with my solution or give an example that makes my code wrong, thanks .
View ArticleWhy is my answer wrong for The Guessing Game (Easy)?
include <stdio.h>include <string.h>int main(int argc, const char * argv[]) { int j,t;scanf("%d",&t); for(j=0;j<t;j++) { int k,i,truth=0,lie; char str[90]; char a; int b,n;...
View ArticleLAZY PROPAGATION
i understood segmented tree...but nowher i can see clear explanations of "LAZY PROPAGATION"....i searched topcoder,geeksforgeeks and all possible blogs and forums....Is ther any book on advanced data...
View Articlenzec error
why this code is giving runtime error(nzec) in python... plese help!!import math test = input() while test>0: n=input() if n==0: print '0' else: j = int(math.log(n,2)) print int(pow(2,j)) test-=1
View ArticleWrong Answer for TWODOGS
This is my code for TWODOGS in this February Long Challenge.codeFor number of inputs I tried, I am getting correct answer but on submitting I get WA. Please help for which cases this code doesn't work.
View ArticleDAGCH-Editorial
PROBLEM LINK:PracticeContestAuthor:ShipluTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:HardPREREQUISITES:Semi Dominator, Path Compression AlgorithmPROBLEM:We are given a...
View Article