Hdu 4517 小小明系列故事――游戏的烦恼 (三)

2014-11-24 03:25:53 · 作者: · 浏览: 6
j] = 0;
if(h[j]>=y)
l2[j] = l2[j-1] + 1;
if(h[j]>=x && l[j]>=y)
ans++;
if(h[j]>=y && l2[j]>=x && x!=y)
ans++;
}
else
{
h[j] = l[j] = l2[j] = 0;
}
}
}
printf("%d\n",ans);
}
return 0;
}