Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
333 B
0
Indexable
Never
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
	int a, b, c, d;
	cin >> a;
	b = -666;
	c = 1;
	d = 0;
	while (1) {
		cin >> a;
		if (a == 0) break;
		if (b == -666) {
			b = a;
			continue;
		}
		if (a > b) c += 1;
		if (c > d) d = c;
		else c = 1;

	}
	cout << d+1;
}