当前位置:网站首页>*4-1 CCF 2014-12-1 Access Control System
*4-1 CCF 2014-12-1 Access Control System
2022-08-09 14:50:00 【Leaf Xiao Bai】
题目描述

源代码
#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;
}
边栏推荐
猜你喜欢
随机推荐
模拟实现strcpy函数的实现(含多次优化思想)
手机厂商失守元宇宙
Dry+Bean+Dataset R language data analysis, report in English
青蛙跳台阶
冒泡排序(详细)
测试研发的人数科学比例
GridContainer of openharmony container component
曾毓群想做王传福
(PC+WAP)带手机端pbootcms模板农业种植类网站
11. cuBLAS Development Guide Chinese version--Level-1 functions amax() and amin() in cuBLAS
阿里巴巴开源大规模稀疏模型训练/预测引擎DeepRec
Jetpack Compose - remember, mutableStateOf, rememberSaveable
idea安装
汇编语言学习(六)课程设计一
C语言 猜数字游戏 (含代码并详细注释)
*1-1 OJ 56 Hamming Distance
vs how to use a Button to link to another page
Flex for openharmony container components
Es7.x使用RestHighLevelClient进行查询操作
【翠花学习单例模式】项目框架升级之单例模式及统一异常处理









