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

CHEFGAME - Editorial

PROBLEM LINK:PracticeContestAuthor:Roman RubanenkoTester:Hiroto SekidoEditorialist:Anton LunyovDIFFICULTY:MEDIUMPREREQUISITES:Prim's algorithmPROBLEM:The best described in the problem statement.QUICK...

View Article


mnnit 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 Article


STRQUERY - 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 Article

Why do I get an NZEC?

Why m i getting NZEC (Non Zero Exit Code) for my program?

View Article

Broken 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 Article


God 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 Article

python basics

please provide me links where i could learn basics of python :)

View Article

STRQUERY - 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 Article


runtime error in prime palindrome problem

http://www.codechef.com/viewsolution/2062157 what is wrong with my code? on submission,its coming runtime error..

View Article


input output

wat are the faster ways of input outputs in c???? thank u

View Article

sweep 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 Article

Compilation 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 Article

wrong 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 Article


Golden 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 Article

AMMEAT2 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 Article


Why 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 Article

Ruby 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 Article


Image may be NSFW.
Clik here to view.

CodeChef 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 Article

AMSTRING - 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 Article

AMBALLS - 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
Browsing all 40121 articles
Browse latest View live


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