当前位置:网站首页>@1-1 CCF 2021-04-1 灰度直方图
@1-1 CCF 2021-04-1 灰度直方图
2022-07-25 09:19:00 【叶萧白】
题目描述

样例


源代码
#include<iostream>
using namespace std;
int arr[300];
int main()
{
int n, m, l;
int mumber;
cin >> n >> m >> l;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
cin >> mumber;
arr[mumber]++;
}
}
for (int i = 0; i < l; i++)
{
cout << arr[i] << " ";
}
return 0;
}
关于这题
实际上是统计矩阵中每个数字的出现情况 用一个计数数组就可以做到
边栏推荐
- office文件对应的Content-Type类型
- 粗柳簸箕细柳斗,谁嫌爬虫男人丑 之 异步协程半秒扒光一本小说
- nacos2.1.0集群搭建
- PHP网站设计思路
- [WSN communication] optimize HWSN energy-saving clustering protocol based on MATLAB biogeography [including Matlab source code, 1989]
- @5-1 CCF 2019-12-1 报数
- ActiveMQ -- leveldb of persistence mechanism
- 初始Flask以及简单地上手应用
- Detailed explanation of the use of nanny scanner class
- 深入理解static关键字
猜你喜欢

SSM框架整合,简单案例

分享一个避免递归的部门设计方法

Ten thousand words long, one word thoroughly! Finally, someone has made business intelligence (BI) clear

jsPDF生成PDF文件,文件不全问题,后台进行文件下载,前台不下载

Thick willow dustpan, thin willow bucket, who hates reptile man? Asynchronous synergism, half a second to strip away a novel

sqli-labs Basic Challenges Less11-22
![[arm] Xintang nuc977 transplants wk2124 drive](/img/0c/fa21d7a44e0263dde4d3135a78818f.png)
[arm] Xintang nuc977 transplants wk2124 drive
![[GYCTF2020]Node Game](/img/8d/7e6c2fb2a0359298fbcc1cd8544710.png)
[GYCTF2020]Node Game
![[WSN communication] optimize HWSN energy-saving clustering protocol based on MATLAB biogeography [including Matlab source code, 1989]](/img/47/c804acc3f8de1f0cd5938c3d889e46.png)
[WSN communication] optimize HWSN energy-saving clustering protocol based on MATLAB biogeography [including Matlab source code, 1989]

保姆级Scanner类使用详解
随机推荐
The interviewer asked: how to prevent oversold? There are several ways to achieve it
Ranking of data results in MySQL
idea实用tips---如今将pom.xml(红色)改为pom.xml(蓝色)
ActiveMQ -- JDBC code of persistent mechanism
Excl batch import data, background public parsing method
数据查询语言(DQL)
MySQL appends a string to the string of a field in the table [easy to understand]
Understand why we should rewrite the equals method and hashcode method at the same time + example analysis
Activemq-- delayed delivery and scheduled delivery
MongoDB数据库文件的读与写
Activemq-- asynchronous delivery
sqli-labs Basic Challenges Less1-10
『每日一问』ReentrantLock加锁解锁
C language and SQL Server database technology
将list集合的某一字段拼接单个String
[De1CTF 2019]SSRF Me
『每日一问』LockSupport怎么实现线程等待、唤醒
Unable to start debugging on the web server, the web server failed to find the requested resource
activemq--死信队列
Flask SSTI注入学习