60分,请问哪里有问题,我调试的时候都还好的

P1567 统计天数

```cpp #include<bits/stdc++.h> long long last, cur , n, count = 1, max = 1; int main(){ std::cin >> n >> cur ; for (int i = 2; i <= n; i++){ last = cur; std::cin >> cur ; if (cur > last) count++; else count = 1; if (count > max) max = count; } std::cout << max ; return 0; } ``` 我不会python,你试试这个C++ 对了,加我团队呗,在主页
by mzh98K @ 2023-01-02 16:18:28


|