#include<iostream> #include <cstdlib> using namespace std; int main() { int a,b,t=1,t1=1,i,a1=0,b1=0,n; cin>>n; for(i=1;i<=n;i++) { cin>>a>>b; if(a==a1&&b==b1)t1++; else { a1=a,b1=b; if(t<t1)t=t1; t1=1; } } if(t<t1)t=t1; cout<<t; return 0; }
http://codeforces.com/contest/237/problem/A