codeforces 237A Free Cash
来源:互联网 发布:淘宝联盟赚钱靠谱吗 编辑:程序博客网 时间:2024/04/29 22:04
点击打开链接
题意:求时间相同的最大个数,审清题意就好。。。
#include<stdio.h>#include<string.h>#include<algorithm>using namespace std;int a[100010],b[100010],v[100010];int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++) scanf("%d%d",&a[i],&b[i]); memset(v,0,sizeof(v)); int ma=1; for(int i=0;i<n;i++) { if(v[i]) continue; int s=0; for(int j=0;j<n;j++) { if(a[i]==a[j]&&b[i]==b[j]) { s++; v[j]=1; } } ma=max(ma,s); } printf("%d\n",ma); return 0;}
阅读全文
0 0
- codeforces 237A Free Cash
- CodeForces - 237A Free Cash (水)
- Codeforces 237A Free Cash(水题吧)
- Codeforces Round #147 (Div. 2) / 237A Free Cash (模拟)
- A. Free Cash
- <Codeforces Round #147 (Div. 2)>A. Free Cash(水题)
- Codeforces Round #147 (Div. 2) A. Free Cash
- Free Cash
- CF 237A (Cash)
- 7月12日A题:Free Cash
- Free Cash(map)
- FAFU-OJ 1328 Free Cash
- CodeForces 274A k-Multiple Free Set
- Codeforces 274A k-Multiple Free Set
- 【CodeForces】[274A]k-Multiple Free Set
- codeforces 274A k-Multiple Free Set
- CodeForces - 274A - k-Multiple Free Set
- CodeForces 274 A. k-Multiple Free Set
- windows 7远程桌面的凭据不可用
- Solr6.6的安装以及Java使用SolrJ调用Solr服务,springmvc使用solr,springboot使用solr
- 缅怀Chester Bennington——Linkin Park
- c语言基础,常用的几个练习小题目
- 讯飞语音合成出现:10111初始化引擎错误
- codeforces 237A Free Cash
- HTML之表单标签小结
- python学习笔记(一)
- myeclipse10中svn的安装和使用(详细图解)
- windows任务管理器中的工作设置内存,内存专用工作集,提交大小详解
- WPF 初步使用Binding
- mysql主从复制
- 敲七 oj89
- C# 位移运算