[algogeeks] Re: largest number bitwise contest

2006-02-10 Thread Prunthaban Kanthakumar
This was a bit surprising for me... For this question... scanf,printf combination failed. cin,cout succeeded.  

[algogeeks] Re: largest number bitwise contest

2006-02-10 Thread phoenixinter
what's the type definition of max? integer or long long? change it to cout<

[algogeeks] largest number bitwise contest

2006-02-10 Thread Terry
Hi, This is a recent bitwise contest problem. Problem is posted below. scanf("%d",&n); while(n--) { scanf(" %lld",&no); scanf(" %d",&max); for(i=1;ihttp://www.bitwise.iitkgp.ernet.in/index.php?q=status&p=problems&pset=2 Problem Statement Find the largest element in a list of numbers Input

[algogeeks] Re: Cormen Problem

2006-02-10 Thread Gene
Just noticed again that I made a silly algebra error and this code doesn't work right when the operands are of even length. Sorry. If anyone is interested I'll work out the correction.