LOWSUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Vineet PaliwalTester:Roman RubanenkoEditorialist:Jingbo ShangDIFFICULTY:EASYPREREQUISITES:Sort, Priority Queue, Binary SearchPROBLEM:Given two arrays A[1..K],...
View ArticleGetting wrong answer for buy1 get1 question although output and logic is correct
//This is the code in python for the samez=input()i=0 list=[] def find(i): dict1={} for j in i: dict1[j]=0 for j in i: dict1[j]=dict1[j]+1 cost=0 cost1=0 for i in dict1: if dict1[i]%2==0:...
View ArticleGetting wrong answer although of correct code
I have solved one of the problem here, i tested it, compared all logic and outputs are correct but in submission its giving wrong answer, what possibly i am missing, like do we need to include...
View Articleruntime error sigsegv using gets or fgets
do codechef judge doesnot passes gets or fgets.when i used this function to input an array it gave runtime error sigsegv.pls help :);
View ArticleAlways getting NZEC Error
This is my code c# code,using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions;namespace Playlist { class Program { static int n,m,cnt=0,key=-1; static...
View Articlewhich datatype to use
how to decide which data type to use by seeing the constraints eg. if constraint is 1 ≤ n, m ≤ 10^5 can i use int data type for n & m in C language
View ArticleTux Coder 2014 Editorials
Editorials for TUXCODER 2014 - organized by Web Club NITK SURATHKAL and NITK Codechef Campus Chapter.Problem 1 : Balanced TeamProblem Setter and tester : Aditya KadamThis was the easiest problem of the...
View ArticleHow to programatically find if the code is recursive or iterative
Is there any way to programatically find if the given code is taking recursive approach or iterative apporaoch using concept of files in C programming.
View ArticleTMSLT - Editorial
PROBLEM LINK:PracticeContestAuthor:ShipluTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:SortPROBLEM:Given a random sequence of N numbers, a[0..N-1], sort them in order and...
View ArticlePROSUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Simple MathPROBLEM:Given a sequence of numbers A[1..N], find the number...
View ArticleBINTOUR - Editorial
PROBLEM LINK:PracticeContestAuthor:Constantine SokolTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:CombinationPROBLEM:For each of 2^K players labeled by 1 .. 2^K, how many...
View ArticleLEMOVIE-Editorial
PROBLEM LINK:PracticeContestAuthor:VitaliyTester:Hiroto Sekido, Gerald AgapovEditorialist:Ajay K. VermaDIFFICULTY:Easy-MediumPREREQUISITES:Dynamic programming, CombinatoricsPROBLEM:Given an array A of...
View ArticleNumberFormatException while reading input in java
Why am I getting runtime exception while reading characters by using read() method and on next line using readLine() method of buffered reader? What can I do to avoid this? Referring...
View ArticleRTE in java submission of problem DRGHTS
The problem link is http://www.codechef.com/problems/DRGHTS I failed to understand why my submission is getting RTE.The link to my submission is http://www.codechef.com/viewsolution/3469926 Please...
View ArticleMPROJ Problem statement
Need Clarity in problem statement as per statement the efficiency is"A Team of Mech guys from UVCE are working on a Robot, which can cut the ripen coconut from the tree by controlling the release of...
View ArticleCheating Cases, Revisited February 14
Its really disgusting.Admin its high time for tough measures, cheaters cheat doesnt matter its long, cookoff or lunchtime.I think these users have developed their skills so as to cheat in 3 hr...
View ArticleAlgorithm to find the summation of (1/n)
Can this be done efficiently for n as big as 10^8
View ArticleSubmit external contest's question's
can you submit external contest's answer's after it's over just to check whether am i right or wrong?
View ArticleChecking constraints
Are the problems checked beyond their constraints. And if yes, then what will be the expected output or how to bound the problem strictly upon the constraints?
View ArticleCode running perfectly on eclipse and command line but throws run time...
Hi,I am new to codechef. I am trying to solve a problem. the solution is working fine on my system(eclipse)but shows runtime error(NZEC) on codechef. Trying to solve FarmerFeb april contest.
View Article