Search found 1 match

by shakil.ruet.12
Wed Oct 30, 2013 5:28 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 153450

Re: 10038 - Jolly Jumpers

why i am getting WA ? plz correct me............
#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
int n,a[3000],i,j,x,y,temp;
while(scanf("%d",&n)==1)
{
if(n<1)
{
printf("Jolly\n");
continue;
}
for(i=0;i<n;i++)
{
scanf("%d",&x);
if(i>0)
a[i-1 ...

Go to advanced search