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

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


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


EXAM - Editorial ( NCC 2014 )

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

View Article

MULDIV - Editorial ( NCC 2014 )

PROBLEM LINK:ContestAuthor: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 N by K...

View Article

SNOOKER - Editorial ( NCC 2014 )

PROBLEM LINK:ContestAuthor:Vaibhav Tulsyan, Aditya SarodeTester:Aditya SarodeEditorialist:Aditya SarodeDIFFICULTY:MEDIUMPROBLEM:Given a snooker table with different points to its four sides find out...

View Article


stray } error in the program

An errot saying stray } in the program (at the end of the program) when i try to compile my program. What to do ?

View Article

QUAD - Editorial ( NCC 2014 )

PROBLEM LINK:ContestAuthor:Vaibhav Tulsyan, Aditya SarodeTester:Vaibhav TulsyanEditorialist:Vaibhav TulsyanDIFFICULTY:CAKEWALKPREREQUISITES:Binary ArithmeticPROBLEM:Given a hex number, split it into...

View Article

RECT - Editorial ( NCC 2014 )

PROBLEM LINK:ContestAuthor:Vaibhav Tulsyan, Aditya SarodeTester:Aditya SarodeEditorialist:Aditya SarodeDIFFICULTY:EASYPROBLEM:Given N rectangles and M points in a co-ordinate plane, each of the point...

View Article


SNET - Editorial ( NCC 2014 )

PROBLEM LINK:ContestAuthor:Vaibhav Tulsyan, Aditya SarodeTester:Aditya SarodeEditorialist:Aditya SarodeDIFFICULTY:MEDIUMPREREQUISITES:Graphs, DFSPROBLEM:Given a graph with K edges, find out the number...

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

ANUMFS - Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:CHALLENGE PROBLEM:It is an interactive judge problem. You have a search area defined by n...

View Article

Zonal Informatics Olympiad

How can i participate in this olympiad. They are not showing how to particiapte on their site. Can any one just tell me

View Article

dynamic programming knapsack

hey please make me understand the logic of the question http://www.codechef.com/NCC2014/problems/EXAM/

View Article


Where can I find problems of NCC2014 for PRACTICE?

I cannot find them on PRACTICE page.

View Article

UVA 3n+1 problem

Instead of brute force is there any trick or formula to solve this problem. http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=36

View Article


RPC program problem!

Hi,I'm working on RPC in linux , I use Rpcgen to generate the files . My program is to send an array to a server , the server returns 3 * array.. // .x file const maxnum=50; struct inout_array { int...

View Article

Decreasing String:Cannot find error

My c code for this for the problem : #include<stdio.h> int main() { char alpha[27]; int t,k,q,r,i; for(i='z';i>='a';--i) alpha['z'-i]=i; // storing in descending order alpha[i]='\0';...

View Article


HOLES - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATION You just simply need to do what is mentioned in problem statement. Just note that only letter “B” has two holes, and only letters “A”, “D”, “O”,...

View Article

What IDE should I use for java ?

I know this is not a technical questions, but I need some guidance from java users. Till today, I have done all my coding in C/C++ using CodeBlocks. CB is the best till now for C++, or is there any...

View Article

Not a Triangle:Wrong answer

In the problem Not a Triangle , i have used c language and followed the algo :1.Sort the array using merge sort in ascending order. 2.find the smallest index of array such that it is a[index]...

View Article
Browsing all 39796 articles
Browse latest View live


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