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

external contests

I just want to ask that why don't you put the questions of the external contests in the pratice section so that one can solve them later ,as you do for the questions of the long and cook offs ??

View Article


not able to submit code for test

#include <iostream> using namespace std; int main() { int n=0; while(true){ cin>>n; if (!(n==42)) cout<<n<<endl; else break; } return 0; }

View Article


ACM ICPC Amritapuri Regionals 2011 A

I am trying to solve this problem : http://www.spoj.com/problems/AMR11A/Here is a link to my solution http://ideone.com/8ebZDjI am first using the usual dp method of finding best path through a 2D...

View Article

printf and scanf for pair

why printf and scanf do not work when we use statements like this- pair < int, string> f[10001]; scanf("%s %d",f[i].second,&f[i].first);//where 0<=i<=10000 but cin and cout works :(

View Article

TEXT submissions

I have seen some problems like EASYPROB were submitted in TEXT. What does TEXT actually mean?How to submit in TEXT? Can anyone explain?

View Article


SPOJ problem---IITKWPCA ..is there any case left?

import java.io.*; import java.util.Arrays;class IITKP{ public static void main(String ar[])throws Exception{ DataInputStream s=new DataInputStream(System.in); int t=0,len=0,x=0,count=0,i=0;...

View Article

basic graph algo related problems

Can anyone provide me the list of problems related to graph algos like 1.BFS, DFS 2.Euler's path 3.prim and kruskal for minimum spanning tree 4.dijkstra , bellman ford for shortest path 5.warshall If...

View Article

choice of languages

actually this question is not regarding any particular topic AS such.. i m a starter in d vast world of coding. wen evr i look around i see a lot of languages, c,c++,python, java,ruby,haskell (to name...

View Article


kruskal VS prims

which is better to use and also can the PRIMS be used when the graph is disconnected ...

View Article


buy1get1 wrong answer help

http://www.codechef.com/viewsolution/3312318please help getting wrong answerproblem link http://www.codechef.com/problems/BUY1GET1

View Article

WA in RECIPE

I am getting WA for the problem link: http://www.codechef.com/problems/RECIPEand here is my solution id linkPlease help me with the problemThank you

View Article

PLAYFIT - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis was one of the simple problems of this month. A lot of you were able to solve it easily. The constraints of the problem were such that only...

View Article

BESTBATS WA

I tried doing BESTBATS, but somehow I am getting a WA. Can someone please see what the problem is? I have sorted the Score array and then, I have checked which all elements are common between the list...

View Article


bellman ford

hey plz provide the links to bellman ford questions

View Article

DESSERT WIZARD:WHAT IS WRONG IN MY CODE?

HERE IS A LINK TO THE PROBLEM : http://www.codechef.com/problems/DELISH AND THIS IS A LINK TO MY SOLUTION :http://www.codechef.com/viewsolution/3307572 CAN ANYBODY TELL ME WHATS WRONG IN THIS CODE? I...

View Article


SRM 547 - Div2 - 500 - PillarsDivTwo

I am trying to solve the following problem - http://community.topcoder.com/stat?c=problem_statement&pm=12075&rd=14739 using the dynamic programming approach, and I have written down the...

View Article

bitwise operators

if(b&1) do these operators work only for numbers less than 16 bits?if no, then how it will perform these operations?

View Article


Codex editorials for specops,subset sum

Could somebody tell me how to solve specops and subset sum?

View Article

Confusion in recursion

int main() { int p=get();//get() function is called here itself.(get is user-defined function for input purpose.) } BUT when we talk of recursion, int abhilash(int a,int b) { int...

View Article

Processing Subsets

How can I analyse all subsets of a set in nlog(n) time?

View Article
Browsing all 39796 articles
Browse latest View live