CHEFGAME - Editorial
PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:MEDIUMPREREQUISITES:Prim's algorithmPROBLEM:The best described in the problem statement.QUICK...
View Articlemnnit 1st yr b.tech
hi!!! this z frm mnnit 1st yr cse...wanna get edge over others n prepare myself 4 future frm nw!!! please tell me what I shud be doing n what r d things in cse field that need to learn about...
View ArticleSTRQUERY - Will rope work here?
Will Rope Data Structure work on the problem String Query in April '13?? And is there any good tutorial on it??
View ArticleBroken necklace(USACO training gateway)
hi everyone, I try to solve "Broken Necklace" problem in USACO training. problem is: Broken Necklace the problem link You have a necklace of N red, white, or blue beads (3<=N<=350) some of which...
View ArticleGod Code.....
A code Which can solve all problem of a contest...Guys this is a very interesting code for this contestThe code is int main() { int d, T =1; while(scanf("%d",&d)!=EOF) { printf("Case #%d: \n", T);...
View ArticleSTRQUERY - Editorial
PROBLEM LINK:PracticeContestAuthor:Tom ChenTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:HARDPREREQUISITES:Suffix array, Treap, Knuth–Morris–Pratt algorithmPROBLEM:You are given a string S of...
View Articleruntime error in prime palindrome problem
http://www.codechef.com/viewsolution/2062157 what is wrong with my code? on submission,its coming runtime error..
View Articlesweep line / largest polygon
Hi, I have a set of segments and I have to calculate the area of the largest polygon which can be build using this segments (the polygon must be enclosed)… sounds like a sweep-line problem but I have...
View ArticleCompilation Error
My program runs perfectly fine on my pc. But while submitting it on code chef, it shows a long list of compilation errors. I am a first time submitter... please review my code and help! :) By the way,...
View Articlewrong answer couldn't get it correct,I am a newbie
#include<stdio.h> int main() { int v,a,temp,arr[10001],t,k,c,i,j; v=0; scanf("%d",&t); while(t--) { for(a=0;a<10001;a++) { arr[a]=0; } scanf("%d",&i); for(j=0;j<i;j++) {...
View ArticleGolden Trees - ZNEC Runtime error
Please help me find why I got ZNEC runtime error. When I compiled and ran it, it was fine, but when I submitted, it got an error. I spent several hours and did not find the bugMy code is here
View ArticleAMMEAT2 problem
Please Help!! please point out the error in my solution.... i guess mine answer is working fine for every test case. Submission Id- 2066648 User Id - priyanshuid Thanks in Advance......
View ArticleWhy are these solutions of different users from the April Long Fault question...
I was quite wondered how 16 people of the same institution could think of the same solution which was good enough for a 14th position . Admins night want to have a look at this...
View ArticleRuby Input/Output
what are the best input methods for Ruby?I tried using gets and puts for the problem cylinder earlier in the April Challenge.linkbut it seems they are not good enough for large input files. Are there...
View ArticleCodeChef Profile Badge for Website
Why CodeChef does not provide facility of showcasing/displaying the CC User Profile flair/badges on Personal Website?TopCoderEg:FaceBookEg:CodechefCreate Your BadgeStackOverflowEg: ?
View ArticleAMSTRING - Editorial
Problem Link:PracticeContestDifficulty:EASYPre-requisites:Sliding window, stringsProblem:Given two strings A and B of equal length N, find how many substrings of equal length have a difference not...
View ArticleAMBALLS - Editorial
Problem Link:PracticeContestDifficulty:MediumPre-requisites:Dynamic Programming, CombinatoricsProblem:You are given balls of N different colours. There are C[i] balls of colour i. Find how many ways...
View Article