当前位置:网站首页>*4-1 CCF 2014-12-1门禁系统
*4-1 CCF 2014-12-1门禁系统
2022-08-09 13:31:00 【叶萧白】
题目描述

源代码
#include<iostream>
#include<cstring>
using namespace std;
const int N = 1000;
int a[N + 1];
int b[N + 1];
int main()
{
int n;
cin >> n;
memset(b, 0, sizeof(b));
for (int i = 0; i < n; i++)
{
scanf("%d", &a[i]);
b[a[i]]++;
if (i != n)
printf("%d ", b[a[i]]);
else printf("%d\n", b[a[i]]);
}
return 0;
}
边栏推荐
- Spark Sql之union
- 关于舵机的漂移与不听指挥乱动的问题
- From the Dutch flag problem to the optimization and upgrade of quick row
- 汇编语言学习(九)
- Jetpack Compose - simply the basic attributes of Modifier is introduced
- pyautogui的简单操作(1)
- Jetpack Compose——remember、mutableStateOf、rememberSaveable
- Flex for openharmony container components
- 笔试题记录~~
- 一篇ngork直接使用
猜你喜欢
随机推荐
手机厂商失守元宇宙
汇编语言学习(十)常用指令总结
Zero Basic Learning CANoe Panel Design Catalog
学习opencv-基础应用
Column of openharmony container component
【ClickHouse】 日志清理方法(query_log、query_thread_log)
vs怎么用一个Button链接到另一个页面
Jetpack Compose - Image using Coli load network Image (including GIF, SVG)
C语言 最大公约数,最小公倍数(详细注释代码 一次解决)
操作系统迁移实战之在openEuler上部署MySQL数据库
flink并行度知识点
Counter of openharmony container components
From the Dutch flag problem to the optimization and upgrade of quick row
系统可扩展性思考
Sql之各种Join
Spark读取多目录
Jetpack Compose - remember, mutableStateOf, rememberSaveable
The use of Jetpack Compose - Button (Button)
KMP方法
富媒体在客服IM消息通信中的秒发实践









