当前位置:网站首页>*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;
}
边栏推荐
猜你喜欢
随机推荐
From the Dutch flag problem to the optimization and upgrade of quick row
Spark读取多目录
企业公众号开通微信支付
浅谈CQRS模式
力扣学习路径
操作系统迁移实战之在openEuler上部署MySQL数据库
openharmony容器组件之Badge
理解redis,一篇就够
回归测试如何确定测试范围
Dry+Bean+Dataset R language data analysis, report in English
Column of openharmony container component
C语言 三子棋(含完整 代码详解)
Spark Sql之join on and和where
机器学习web服务化实战:一次吐血的服务化之路 (转载非原创)
Jetpack Compose - Use of TextField and OutlinedTextField (text box)
响应式pbootcms模板家禽饲养类网站
pyautogui的简单操作(1)
系统可扩展性思考
Jetpack Compose——Button(按钮)的使用
vivo手机上的系统级消息推送平台的架构设计实践








