标签:amp for bzoj print pre else can i++ int
这题加个#include
#include<cstdio>
int n,la,x,tot;
int main()
{
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&x);
if(x==la)
tot++;
else if(!tot)
la=x,tot=1;
else
tot--;
}
printf("%d",la);
return 0;
}
标签:amp for bzoj print pre else can i++ int
原文地址:https://www.cnblogs.com/lokiii/p/9650323.html