Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- ifstream f("platou2.in");
- ofstream g("platou2.out");
- int main()
- {
- int t,a,b,i,n,Max=0,k=1,x,y;
- f>>n>>x;
- for(i=2;i<=n;i++)
- {
- f>>y;
- if(y>x) k++;
- else {Max=k;k=1;}
- }
- if(k>Max) Max=k;
- g<<Max;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement