Search found 1 match

by Symon
Sat Sep 18, 2010 9:29 pm
Forum: Volume 9 (900-999)
Topic: 957 - Popes
Replies: 15
Views: 10841

957-Popes

I can't realize why I'm getting WA.
Please give me some input output.
#include<iostream>
#include<algorithm>
using namespace std;

int main()
{
long int y,p,i,j,a[100005],cnt[1][3],max,increase;
while(scanf("%ld%ld",&y,&p)!=EOF)
{
max=-1;
increase=-1;
for(i=0;i<p;i++)
{
scanf("%ld",&a[i ...

Go to advanced search