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

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


runtime error(NJEC)

what does meant by runtime error(NJEC)?include<stdio.h>void main() { int i,j,n,temp; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]);="" for(i="0;i&lt;(n-1);i++)" {=""...

View Article

TLE for Sums in a Triangle with Memoization

Hi,I tried this code for Sums in a Triangle:import sys T = int(sys.stdin.readline()) memo = {} def solve(i, j, m, limit): # print "i:"+str(i) if i==limit: return 0 if (i, j) in memo: # print "Reused:",...

View Article


Mike and Task Packages WA in Python

Hi,I coded this solution for MIKE2:from __future__ import division def read_mapped(func=lambda x:x): return map(func, raw_input().split(" ")) def read_array(N, func): l = [] for i in xrange(N):...

View Article

MAXCOUNT : python code NZEC error

I submitted a solution to MAXCOUNT problem in python 2.7 , but it shows NZEC. why is it so? I want to know how to submit python codes? Do I need to include numpy, sys , scipy, etc. libraries in the...

View Article


showing wrong answer when it is working f9 on windows 7

Chef-jumping ques http://www.codechef.com/MAY14/problems/OJUMPSFollowing is my code, which is a success on ideone.com, the onl9 compiler:public class Main{public static void main (java.lang.String[]...

View Article

ANUBGC question :)

Hi,Awesome cook-off and hats off to setter for so many good problems!!I know that the solution for this problem must rely on the "constructive/deterministic side" i.e. we must be able to construct...

View Article

What is the method to solve ANUBGC?

How do we calculate the number of numbers less than N which contain a certain digit 'd', within time limit?

View Article
Browsing all 40121 articles
Browse latest View live


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