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

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 Article


Reporting 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 Article


COT5 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 Article

COLARR-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 Article

Editorials 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 Article


Evaluation taking too much time!

@admin : Its taking around 2-5 min in evaluating a code ?

View Article

COT5-Editorial

PROBLEM LINK:PracticeContestAuthor:Tang FeihuTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:HardPREREQUISITES:Treap, Segment TreePROBLEM:Support the following operation on a...

View Article

REMISS 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 Article


Image may be NSFW.
Clik here to view.

Prayaas-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 Article


Getting 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 Article

CHEATING 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 Article

Life,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 Article

Why this code is giving runtime error.Problem code-INTEST

link text

View Article


Life,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 Article

FIRESC 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 Article


Why 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 Article

LAZY 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 Article


nzec 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 Article

Wrong 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 Article

DAGCH-Editorial

PROBLEM LINK:PracticeContestAuthor:ShipluTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:HardPREREQUISITES:Semi Dominator, Path Compression AlgorithmPROBLEM:We are given a...

View Article
Browsing all 40121 articles
Browse latest View live


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