Problem - 152A - Codeforces
来源:互联网 发布:天地知我心二小说 编辑:程序博客网 时间:2024/05/16 02:11
#include <iostream>#include <cstring>using namespace std;int main (){ int n,m; int count = 0; char max; int vis[101];//不让某个学生被重复的统计到 cin >> n >> m; char score[101][101]; memset(vis,0,sizeof(vis)); for (int i = 0; i < n; i++) { cin >> score[i]; } int j,k; int a = 0; for (j = 0; j < m; j++) { char max = score[0][a]; for (k = 0; k < n; k++) { if ((int)max < (int)score[k][j]) { max = score[k][j]; } } for (int t = 0; t < n; t++) { if ((int)max == (int)score[t][j] && !vis[t]) { count += 1; vis[t] = 1; } } a++; } cout << count << endl; //system("pause"); return 0;}
0 0
- Problem - 152A - Codeforces
- codeforces problem/244/A
- codeforces problem/415/A
- codeforces. problem/408/A
- Codeforces Problem 333A
- Codeforces Problem 332A
- codeforces problem/416/A 二分
- codeforces 17A Noldbach problem
- 【codeforces 29A】Spit Problem
- CodeForces - 29A - Spit Problem
- CodeForces-17A-Noldbach problem
- 【codeforces 749A】Bachgold Problem
- Codeforces 749A-Bachgold Problem
- Problem--1A--Codeforces--TheatreSquare
- Problem--4A--Codeforces--Watermelon
- Problem--231A--Codeforces--Team
- Problem--282A--Codeforces--BIt++
- Problem--96A--Codeforces--Football
- 从客户端(txtNewsContent="<hr />")中检测到有潜在危险的 Request.Form 值。怎么办呀?
- 第三周作业
- poj4013 Cube Coloring
- Android文档笔记:通知(一)
- Android左右滑动切换背景(GestureDetector)
- Problem - 152A - Codeforces
- int 和string转换
- 第三周
- nyoj_813对决
- cocos2d-x 数据存储 Sqlite数据库
- windows下安装、卸载mysql服务
- javaweb之自定义标签库——迭代标签(foreach)(可迭代Map、List、Set、任意数组)
- 新款 洗澡时也可以使用的手机套
- redis pub/sub 聊天