This was a bit surprising for me...
For this question...
scanf,printf combination failed. cin,cout succeeded.
what's the type definition of max? integer or long long?
change it to cout<
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
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.