Quantcast
Browsing all 39796 articles
Browse latest View live

Some more Homework:Algorithm

Can someone please explain algorithm to solve the problem ? Pls no hints.Just plain simple algorithm!!

View Article


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


sumtrain : 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 Article

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

ranking and rating

y my rating is negative???

View Article


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

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

EXAM - Editorial ( NCC 2014 )

PROBLEM LINK:ContestPracticeAuthors:Vaibhav Tulsyan, Aditya SarodeTester:Vaibhav TulsyanEditorialist:Vaibhav TulsyanDIFFICULTY:EASYPREREQUISITES:Knapsack ProblemPROBLEM:Given the marks for N questions...

View Article


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


codechef compiler

codechef compiler is 32 bit or 64 bit..??

View Article

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

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

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


ADIGIT - Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE-EASY PREREQUISITES:PrecomputationPROBLEM:Given N(<=10^5 ) digits...

View Article

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


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

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


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

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

time 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
Browsing all 39796 articles
Browse latest View live


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