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

AMMEAT - Editorial

Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:ad-hocProblem:You have N plates of meatballs, the ith having Pi meatballs. What is the minimum number of plates you need to choose so that...

View Article


ACM-ICPC 2014 World Finals - Ekaterinburg, Russia

Official video released by ACM-ICPC for the 2014 World Finals

View Article


GCD2 ALGORITHM

Can anyone pls explain the algorithm for gcd2 problem.?..i am stuck here....i referd many solutions but i am not undertanding what they r doing...

View Article

Problem with December Challenge test data ?

Hi, Is anyone aware whether the test data format for December Challenge been changed? I am submitting code(s) in Java and they give runtime error (NZEC) on the judge page. In one of the questions, I...

View Article

PRETNUM - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:EASYPREREQUISITES:Prime factorization, SievePROBLEM:Find the number of integers in the given range which have prime number of divisors.QUICK EXPLANATION:Although...

View Article


ICPC Practice Contest by IIIT-H Programming Club

IIIT-H Programming Club presentsICPC Practice Contest 3 (Onsite prelims)Starts at 11th Dec 05:00 PM - 10:00 PM (5 hrs)Register at http://felicity.iiit.ac.in/domjudge/Please note that people who had...

View Article

Knapsack Problems?

What are your favourite knapsack problems? Please link them in the answer. I just learnt the algo and would like to get proficient in it. Thanks :D

View Article

Practice Problems.Unable to access !

Hi, When I try to read a problem from the practice section(easy/medium) it says "You are not authorized to access this page. " Can someone please tell why this happened and for how long is it going to...

View Article


ACM ICPC number of try left

I qualified for Amritapuri Onsite Regionals in the last last list . However i rejected it. This year i had also registered for Kgp Online Round but couldnt participate in the online round due to exam...

View Article


Firesec TLE

Dear friends, I have been trying to solve the question http://www.codechef.com/problems/FIRESC/ for a long time,my logic is definiely right wit complexity but why is it still showing TLE ,could u...

View Article

AND Rounds - Wrong Answer

I am trying to solve AND Rounds http://www.codechef.com/problems/RESN01 or http://www.spoj.com/problems/ANDROUND/ Here is my approach.Let the original array be A[N] and the final array be C[N].(1) If...

View Article

ACM ICPC kanpur regional

are we allowed to take a library of codes for the onsite contest....we have received the mails but it doesnt mention anything about the library..also there was a question on quora saying we are not...

View Article

advantage of using assert in program

i want to know that some programmer use assert in their program , is there any advantage of using assert while running the program on judge where all the constraints are defined and are guaranteed that...

View Article


need some help in few tricks to reduce my runtime

i always face runtime problem.. what should i do

View Article

Can I host a intra-college level coding contest on codechef.com?

The number of coders could be anything between 20 to 200. I saw the "Host your contest" page. Just want to know if it's a sure shot thing. Not like, codechef will review my contest, and will let me...

View Article


runtime error in c code

#include<stdio.h> #include<stdlib.h> int main() { int t ,*a,*b,q,i,j,na,nq,*p,k=0,temp,l; scanf("%d",&t); if(t>5) exit(0); else { for(l=0;l<t;l++) { scanf("%d...

View Article

MCHAIRS - Editorial

PROBLEM LINK:PracticeContestDIFFICULTY:SIMPLEPREREQUISITES:Combination, Sum of Binomial CoefficientsPROBLEM:For a given value N, Find the sum of all Combination(N,k) where k varies from 1 to NQUICK...

View Article


Help with segment trees - query processing

Hello all,I am now attempting to solve the problem FLIPCOIN in the practice section, medium difficulty level.I am aware that a naive solution gets TLE... However, I also know that some sort of segment...

View Article

fastest implementation of segment tree

Someone please post or suggest some link to what could be the fastest implementation of simple range minimum query segment tree in C/C++ ?

View Article

Array Transform Problem

Here's the link to the problem : http://www.codechef.com/problems/ARRAYTRMI haven't come across a similar problem before, and after giving much thought to it, I am unable to arrive at a suitable...

View Article
Browsing all 40121 articles
Browse latest View live


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