C++
最朴素的办法 (没想出来优雅的办法)
#include<bits/stdc++.h>
using namespace std;
int n;
int t[25][60];
int main() {
cin >> n;
while (n --) {
int h, m;
cin >> h >> m;
t[h][m] ++;
}
int max1 = 0;
for (int i = 0; i <= 23; i ++) {
for (int j = 0; j <= 59; j ++) {
if (max1 <= t[i][j])
max1 = t[i][j];
}
}
cout << max1;
return 0;
}