当前位置:网站首页>PAT甲级 1054 The Dominant Color
PAT甲级 1054 The Dominant Color
2022-08-08 00:53:00 【九是否非随机的称呼】
#include<iostream>
#include<vector>
#include<map>
#include<bits/stdc++.h>
using namespace std;
int main(void){
int i, j, k, m, n, h, mm, nn;
map<int, int> mp;
cin>>m>>n;
for(i=0; i<n; i++){
for(j=0; j<m; j++){
cin>>h;
mp[h] += 1;
}
}
mm = -999999;
for(map<int, int>::iterator it = mp.begin(); it!=mp.end(); it++){
if(mm < it->second){
nn = it->first;
mm = it->second;
}
}
cout<<nn;
return 0;
}边栏推荐
- torch.utils.data of PyTorch source code interpretation: the whole process of parsing data processing (very good, one article is enough)
- 案例:ELK日志分析系统
- Is it safe to snowball account!
- 2021 RoboCom 世界机器人开发者大赛-本科组(决赛)7-1绿色围栏(模拟)
- TensorFlow(六):循环神经网络
- Rdkit常用命令/参数设置
- 阿包的夜宵
- Failed to initialize NVML: Driver/library version mismatch
- 陈强教授《机器学习及R应用》课程 第五章作业
- Is it safe to buy stocks with great wisdom?Will the funds be transferred?
猜你喜欢

每周小结(*68):为什么要打架

多少建模师靠着zbrush这软件成家立业,你们还在等什么

Rdkit common commands/parameter settings

pnpm简介和用法

梅科尔工作室-钟伊帆-小熊派学习笔记(网络应用开发)

【HDLBits 刷题 6】Circuits(2)Sequential Logic---Latches and Filp Flops

Case: ELK log analysis system

第三方应用接口回调错误

Octopus Application Chain|Content Curation Collaboration Organization DISCOVOL DAO Mainnet Launched in August

第三章 矩阵压缩
随机推荐
陈强教授《机器学习及R应用》课程 第九章作业
Stack SQL injection, rounding
pycharm connect to remote server
OpenFeign简介和使用详解
【目标检测】------非极大值抑制NMS底层
证券开户是安全的吗,靠谱吗?
MD5加密工具类
陈强教授《机器学习及R应用》课程 第六章作业
Antdv+Asp.net WebApi Development of Student Information Management System (1)
SVG基本图形
同花顺炒股软件正规吗?安全吗?
SwiftUI使用MatchedGeometryEffect快速同步不同继承层级中视图的位置和尺寸
Rdkit常用命令/参数设置
Take you to brush (Nioke.com) C language 100 questions (the fifth day)
Octopus Application Chain|Content Curation Collaboration Organization DISCOVOL DAO Mainnet Launched in August
程序后台运行并实时输出日志
eyb:Redis的学习(1)
一套极简的MQTT使用接口EasyMqttClient
Is it safe and reliable to open a securities account?
STM32F103C8T6模拟SPI控制6针/7针0.96寸OLED显示屏
https://github.com/ZouJiu1/PAT