当前位置:网站首页>CCF access control system (Full Score code + problem solving idea) 201412-1
CCF access control system (Full Score code + problem solving idea) 201412-1
2022-06-30 14:40:00 【A cute little monkey】
Title Description

Their thinking
The question is to ask a group of numbers , This number is currently How many times
Because the data range is very small , So we can use the numbers as The array subscript , Add up the number of times the number appears
Code implementation
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
const int N = 1010;
int n;
int a[N];
int main()
{
cin >> n;
while (n --)
{
int x;
cin >> x;
a[x] ++;
cout << a[x] << " ";
}
return 0;
}
边栏推荐
- August 24, 2021 deque queue and stack
- 數據恢複軟件EasyRecovery15下載
- Uniapp upload image method
- Minimum covering substring of two pointers
- Double pointer palindrome string
- Cost forecast of PMP (BAC, EAC, etc)
- V3 03_ Getting started
- Finding the root of an integer by dichotomy
- 2021-07-14 mybaitsplus
- JS array sorting method summary
猜你喜欢
[email protected][])"/>NoViableAltException([email protected][])
![[buuctf] [actf2020 freshman competition]exec1](/img/af/22051a5feb3c1f6d7201a483bde127.jpg)
[buuctf] [actf2020 freshman competition]exec1

Error on datetime when importing SQL file from MySQL

Detailed explanation of settimeout() and setinterval()

The first three passes of sqli Labs

Shangpinhui knowledge points of large e-commerce projects

Querywrapper in mybaits plus

On simple code crawling Youdao translation_ 0's problem (to be solved)

Solve the error in my QT_ thread_ global_ End(): 3 threads didn't exit

2021-05-12
随机推荐
Not satisfied with markdown native code block style? Try this beautify code screenshot tool~~
On simple code crawling Youdao translation_ 0's problem (to be solved)
Three uses of golang underscores
Cost forecast of PMP (BAC, EAC, etc)
Four isolation levels of MySQL
PHP excel export function encapsulation (based on phpexcel class)
Go language for loop multivariable use
The JSON data returned from the control layer to JS has a "\" translator. How to remove it
Crypto questions
Invalid argument during startup: Failed to open the . conf file: redis-window
Experiment 2: stack
Summary of use of laravel DCAT admin
notepad正则删除关键词所在行
Uniapp upload image method
PS tip: the video frame to Layer command cannot be completed because dynamiclink is not available
Is it troublesome for CITIC futures to open an account? Is it safe? How much is the handling charge for opening an account for futures? Can you offer a discount
org.json.JSONObject对象转json,json新增元素,根据json的key获取值。以及list对象格式字符串转jsonArray
JS array
Error on datetime when importing SQL file from MySQL
PHP conditional operator