当前位置:网站首页>CCF access control system
CCF access control system
2022-06-12 04:34:00 【Python's path to becoming a God】
subject 
Ideas
This question is a very simple question for sending scores , You just need to record the number of occurrences each time and output them , Hash table is used here unordered_map To store .
Code
#include <iostream>
#include <unordered_map>
using namespace std;
int n;
int main() {
cin >> n;
getchar();
unordered_map<int, int>map;
int temp;
for (int i = 0; i < n; i++) {
cin>>temp;
map[temp]++;
cout << map[temp] << " ";
}
return 0;
}```
边栏推荐
- 【C语言】封装接口(加减乘除)
- 疫情数据分析平台工作报告【2】接口API
- Bearpi IOT serial port transceiver 1- normal mode
- spacy中en_core_web_sm安装问题
- Musk promotes the development of fascinating new products partners remind important questions
- Smart panel WiFi linkage technology, esp32 wireless chip module, Internet of things WiFi communication application
- SqEL简单上手
- Zabbix6.0新功能Geomap 地图标记 你会用吗?
- 千字巨著《编程后传》
- @What happens if bean and @component are used on the same class?
猜你喜欢

1. Mx6ull learning notes (II) - uboot migration

Enterprise Architect v16

Based on Visual Studio code Net Maui cross platform mobile application development
![[软件工具][原创]voc数据集类别名批量修改工具使用教程](/img/25/31d771c9770bb7f455f35e38672170.png)
[软件工具][原创]voc数据集类别名批量修改工具使用教程

leetcode797. All possible paths (medium)

Recommended system cleaning tools, cocktail Download

Summary of sequential, modulelist, and moduledict usage in pytorch

2022 examination questions and simulation examination for crane driver (limited to bridge crane)
![Work report of epidemic data analysis platform [1] data collection](/img/3d/b58c2d3f7fd6051e35d1cea535f858.png)
Work report of epidemic data analysis platform [1] data collection
![[C language] encapsulation interface (addition, subtraction, multiplication and division)](/img/8f/1351826a6f7e83ce90d32d7615adc1.png)
[C language] encapsulation interface (addition, subtraction, multiplication and division)
随机推荐
存储器的保护
Daily practice (28): balance binary tree
Work report of epidemic data analysis platform [1] data collection
Musk promotes the development of fascinating new products partners remind important questions
图解 Apache SkyWalking UI 的使用
Call reminder
Is there a row limit for a single MySQL table
L1-065 "nonsense code" (5 points)
Tasks in C #
How to construct a search string?
La mise en évidence de la recherche par blocs est - elle prise en charge dans les versions ultérieures?
D1 哪吒开发板 上电记录
EnterpriseTECH STAR Question
leetcode 205. Isomorphic Strings
Ebpf series learning (4) learn about libbpf, co-re (compile once – run everywhere) | use go to develop ebpf programs (cloud native tool cilium ebpf)
WPF 数据绑定(四)
SQL Safe Backup显示器和缩放字体的支持
How to use union all in LINQ- How to use union all in LINQ?
Using datetime in MySQL
[software tool] [original] tutorial on using VOC dataset class alias batch modification tool