全是retime error

P1567 统计天数

```cpp #include<bits/stdc++.h> using namespace std; int main() { long long max1,max2,n,a[100000000]; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; for(int i=2;i<=n;i++) { if(a[i]>a[i-1]) max1++; else if(max1>max2) { max2=max1; max1=0; } else max1=0; } cout<<max2+1; return 0; } ```
by Exile_D @ 2018-08-18 19:20:35


你的$a$数组有762.939453125$MB$
by 中国飞鱼 @ 2018-08-18 19:23:46


@[zhousirui](/space/show?uid=18458) 应该是a数组太大了,你开到main函数外面试试
by yzx72424 @ 2018-08-18 19:24:06


**谢谢,已经对了**
by Exile_D @ 2018-08-18 19:26:10


@[yzx72424](/space/show?uid=47269)
by Exile_D @ 2018-08-18 19:26:22


@[zhousirui](/space/show?uid=18458) 何必要存起来呢?你可以在线搞,即读一个数处理一个
by yummy @ 2018-08-18 19:40:50


|