当前位置:网站首页>@1-1 CCF 2021-04-1 gray histogram
@1-1 CCF 2021-04-1 gray histogram
2022-07-25 09:39:00 【Ye Xiaobai】
Gray histogram
Title Description

Examples


Source code
#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;
}
About this problem
In fact, it is the occurrence of each number in the statistical matrix It can be done with a counting array
边栏推荐
- [GYCTF2020]Node Game
- 【代码源】 每日一题 素数之欢(bfs)
- How to write Android switching interface with kotlin
- 自定义 view 实现兑奖券背景[初级]
- 【Android studio】批量数据导入到android 本地数据库
- Class (2) and protocol
- [code source] a prime number of fun every day (BFS)
- Data query language (DQL)
- *7-2 CCF 2015-09-2 日期计算
- 为什么要使用JSON.stringify()和JSON.parse()
猜你喜欢
随机推荐
OC--对象复制
UI - infinite rotation chart and column controller
OC -- Foundation -- array
OC -- object replication
浏览器访问swagger失败,显示错误ERR_UNSAFE_PORT
TCP network application development process
App的生命周期和AppleDelegate,SceneDelegate
Stm32+hc05 serial port Bluetooth design simple Bluetooth speaker
OC -- Foundation -- string + date and time
*6-2 CCF 2015-03-3 Festival
一张图讲解 SQL Join 左连 又连
[GYCTF2020]Node Game
Redis set 结构命令
Laravel calls a third party to send mail (PHP)
How to configure SSH after changing the computer
Kotlin 实现文件下载
Machine learning -- detailed introduction of standardscaler (), transform (), fit () in sklearn package
[GKCTF 2021]easynode
What is cerebral fissure?
【代码源】每日一题 国家铁路


![[GPLT] 2022 大众情人(floyd)](/img/30/c96306ca0a93f22598cec80edabd6b.png)






