当前位置:网站首页>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;
}
边栏推荐
- PHP reverses scenarios based on code and skillfully uses debug_ backtrace()
- Using docker to manage MySQL services under Windows
- Problems in QT creator (additional unknown and error lines are listed in the debug output window)
- Go sync. WaitGroup
- ES6 notes
- DefCamp Capture the Flag (D-CTF) 2021-22 web
- Lihongyi machine learning 2020 homework summary
- [extensive reading of papers] attributes guided facial image completion
- XSS challenge (1-5) more detailed answers
- About the problems encountered when using the timer class to stop with a button (why does the QPushButton (for the first time) need to be clicked twice to respond?)
猜你喜欢

Summary of use of laravel DCAT admin

remote: Support for password authentication was removed on August 13, 2021. Please use a personal ac

Not satisfied with markdown native code block style? Try this beautify code screenshot tool~~

About the problems encountered when using the timer class to stop with a button (why does the QPushButton (for the first time) need to be clicked twice to respond?)

【BUUCTF】 EasySql
![【BUUCTF】[GXYCTF2019]Ping Ping Ping1](/img/dc/4d87dfb0c2fa9cd75b54e092fd3971.jpg)
【BUUCTF】[GXYCTF2019]Ping Ping Ping1

Race of golang

The first three passes of sqli Labs

Computer screenshot how to cut the mouse in

2021-07-14 mybaitsplus
随机推荐
The first dark spring cup dnuictf
PHP multidimensional array sorting
go channel && select
Using docker to manage MySQL services under Windows
Vue returns to the previous page without refreshing the page / Vue caches the page
PHP recursive multi-level classification, infinite classification
Clear the route cache in Vue
ES6 notes
Go language for loop multivariable use
Lfi-rce without controllable documents
NoViableAltException([email protected][])
Learn about data kinship JSON format design from sqlflow JSON format
Problem: wechat developer tool visitor mode cannot use this function
Computer screenshot how to cut the mouse in
LIS error: this configuration section cannot be used in this path
Why does the folder appear open in another program
[buuctf] [geek challenge 2019] secret file
[extensive reading of papers] multi modal sarcasm detection and human classification in code mixed conversations
PS cutting height 1px, Y-axis tiling background image problem
V3 01_ Welcome