Some more Homework:Algorithm
Can someone please explain algorithm to solve the problem ? Pls no hints.Just plain simple algorithm!!
View ArticleCHMOD - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYPREREQUISITESSimple Math, Repeated SquaringPROBLEMYou are given a list of N integers.Each value in the list is between 1 and 100.You have to respond to T...
View Articlesumtrain : prerequisite
what are the prerequisite to solve this problem ... I mean what are the concepts should I know .. here is the link for the problem.. http://www.codechef.com/problems/SUMTRIAN
View ArticleChef and Segments (August challenge '13)
problem link : http://www.codechef.com/problems/CHMODI've done exactly the same thing as in the editorial: http://discuss.codechef.com/questions/20312/chmod-editorialstill my...
View ArticleAll Factors Upto 10^12..
you are give a number upto range 10^12 How to find all possible factors of it ? Ex-for 18 factors are -> 1,2,3,6,9,18
View ArticleMULDIV - Editorial ( NCC 2014 )
PROBLEM LINK:ContestPracticeAuthor:Vaibhav Tulsyan, Aditya SarodeTester:Aditya SarodeEditorialist:Aditya SarodeDIFFICULTY:SIMPLEPROBLEM:F:for i from 1 to M inclusive, doif N is a multiple of K, divide...
View ArticleEXAM - Editorial ( NCC 2014 )
PROBLEM LINK:ContestPracticeAuthors:Vaibhav Tulsyan, Aditya SarodeTester:Vaibhav TulsyanEditorialist:Vaibhav TulsyanDIFFICULTY:EASYPREREQUISITES:Knapsack ProblemPROBLEM:Given the marks for N questions...
View ArticleINTEG - Editorial
Problem Link:PracticeContestDifficulty:SimplePre-requisites:NoneProblem:Given a list of N integers A[1], A[2], ... A[N], and an integer X, find the minimum cost of making all elements non-negative....
View ArticleIssue with challenge problems
What happened?In the May long contest, contestants were able to make many submissions and extract data about test cases. Few users say this is against rules, others say only the smart ones were able to...
View ArticleCHEFBM - Editorial
PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:AD-HOC PROBLEM:There is a N * M matrix, where A[i][j] is j for all i,j. There...
View Articleunderstanding the problem
Hi,can anyone explain in detail what is required in the following program?http://www.codechef.com/NCC2014/problems/MULDIV/ My code http://www.codechef.com/viewsolution/3908975have I misunderstood the...
View ArticleADIGIT - Editorial
PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE-EASY PREREQUISITES:PrecomputationPROBLEM:Given N(<=10^5 ) digits...
View ArticleCNPIIM - Editorial
PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Number Theory PROBLEM:Find number of 2X2 matrices such...
View ArticleDiscrepancies in the Voters List (VOTERS)
HI , I am getting TLE for Voter question. http://www.codechef.com/viewsolution/3915829Thanks in advance for any help.Thanks rajesh
View ArticleExecution time - INTEST
Can someone please tell me how to decrease the execution time of my code? Currently it is 5.48 Following is my code :#include <iostream> using namespace std; int main() { int n,k,cnt=0,t;...
View ArticleCan Edit Distance be done using 1d array ?
Edit distance is a classical dp problem which can be done using 2d array .. Can it be done using 1D array ?
View ArticleHow to Reduce Running time
I have the following code #include <iostream>include <cstdio>include <algorithm>include <cmath>include <cstdlib>include <vector>using namespace std; string...
View Articletime limit exceeded...
What can I do in order to avoid time limit exceeded for the problem LYRC from practice(hard) section? Could somebody please give me few suggestions? The link to the code I wrote in python 3.1.2 is...
View Article