Search found 1 match

by sadia_swarna72
Sun Dec 08, 2013 4:04 pm
Forum: Volume 106 (10600-10699)
Topic: 10611 - The Playboy Chimp
Replies: 44
Views: 25506

Re: 10611 - The Playboy Chimp- why WA ?

i couldn't understand why um getting wa :( .here is my code..

#include<cstdio>
using namespace std;
int main()
{
long int shrt,tall,n=0,h,low,high,q,mid,num,a[50002],i,b[25001];
scanf("%ld", &num);
scanf("%ld", &a[n++]);
for(i=1;i<num;i++)
{
scanf("%ld", &h);
if(h != a[n-1])
a[n++]=h ...

Go to advanced search