Codeforces Round #147 (Div. 2) A题
来源:互联网 发布:淘宝货到付款卖家流程 编辑:程序博客网 时间:2024/05/18 00:58
最近一直在刷CF上的A题,这道题目就是找相同的有多少个!没有就输出1!直接看代码:
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
int n,i,j,h,m;
int a[25][65];
while(scanf("%d",&n)!=EOF)
{
memset(a,0,sizeof(a));
for(i=0; i<n; i++)
{
scanf("%d%d",&h,&m);
a[h][m]++;
}
int max=0;
for(i=0; i<24; i++)
{
for(j=0; j<60; j++)
{
if(a[i][j]>max)
max=a[i][j];
}
}
printf("%d\n",max);
}
return 0;
}
- Codeforces Round #147 (Div. 2) A题
- Codeforces Round #181 (Div. 2) A题
- Codeforces Round #184 (Div. 2) A题
- Codeforces Round #172 (Div. 2) A题
- Codeforces Round #166 (Div. 2) A题
- Codeforces Round #132 (Div. 2) A题
- Codeforces Round #131 (Div. 2) A题
- Codeforces Round #133 (Div. 2) A题
- Codeforces Round #137 (Div. 2) A题
- Codeforces Round #138 (Div. 2) A题
- Codeforces Round #141 (Div. 2) A题
- Codeforces Round #143 (Div. 2) A题
- Codeforces Round #135 (Div. 2) A题
- Codeforces Round #163 (Div. 2) A题
- Codeforces Round #146 (Div. 2) A题
- Codeforces Round #111 (Div. 2) A题
- Codeforces Round #103 (Div. 2) A题
- Codeforces Round #101 (Div. 2) A题
- 【原创】《大数据互联网大规模数据挖掘与分布式处理》阅读笔记(二)
- 线性表习题
- const用法小注(实时更新)
- 什么是文档库?
- 如何才能成为成功的独立游戏开发者?
- Codeforces Round #147 (Div. 2) A题
- 栈和队列 习题
- 算法导论中的一道题
- ibatis缓存
- uva10465 - Homer Simpson(动规)
- 子查询SQL
- 数据库之五例的错误修改
- iOS数据库应用一:SQLite
- HD ACM Wolf and Rabbit