General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
93103318 Practice:
sweetsyrup.int99
702A - 31 C++17 (GCC 7-32) Time limit exceeded on test 5 1000 ms 8 KB 2020-09-18 12:12:29 2020-09-18 12:12:29
→ Source
#include <bits/stdc++.h>
using namespace std;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);


	long long n, answer = 0;
	long long arr[n];

	cin>>n;
	for(int i=0;i<n;++i){
		cin>>arr[i];
	}

	long long cnt = 0;
	for(int i=1;i<n;++i){
		if(arr[i-1]<arr[i]){
			++cnt;
			answer = max(cnt,answer);
		}
		else
			cnt = 0;
		
	}
	cout<<answer+1<<endl;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details