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

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

Ambiguous Permutation Problem

Hello everyone. I tried the Ambiguous Permutation problem under the Easy category, and I've written a code that seems to be working perfectly but for some reason the website says it's the wrong answer....

View Article


Not a triangle

I am getting WA for the question:http://www.codechef.com/problems/NOTATRI/ Anyone plz. explain where i am wrong.Thnx. My code: http://www.codechef.com/viewsolution/2213497

View Article

LEBALONS - Editorial

PROBLEM LINK:PracticeContestAuthor:VitaliyTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY-MEDIUM PREREQUISITES:Combinatorics, Dynamic Programming, Probability PROBLEM:Given N ballons, i'th...

View Article


No editorial for SEINC

When will the editorial of May 14 long challenge Sereja and Subsegment Increasings(SEINC-May 14) be posted?

View Article

TLE in SPOJ: A Needle in the Haystack

Problem linkMy codeI have implemented the Rabin-Karp algorithm and still it's exceeding the time limit. Any suggestions for making it faster?

View Article

Cleaning Up runtime error

Hi, I was trying out Clean Up problem from Practice section, but this code I wrote is giving me an NZEC. I have no idea why. Code:from __future__ import division def read_mapped(func=lambda x:x):...

View Article
Browsing all 40121 articles
Browse latest View live


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