当前位置:网站首页>[pan Wai 1] Huawei computer test
[pan Wai 1] Huawei computer test
2022-06-25 05:15:00 【Jornhitom】
note1. again!
ctrl + F + again! to find the problems that need a double check
hj7. casting
float i;
int j = (int) i;
hj9. unordered_set
unordered_set
reverse(str.begin(), str.end())
set.count
set.insert
hj46. sub string
string s;
s.substr(0, 3); // 3 is not included
hj58. sort vector
vector v;
sort(v.begin(), v.end());
hj2. getline
string array;
getline(cin, array); // this gets more than cin
hj5. ASCII
‘0’ is ASCII 48
‘A’ is ASCII 65
if (s[i] >= ‘0’ && s[i] <= ‘9’)
ans += base * ((int)(s[i]-55));
hj6. prime factor
again!
hj8. map
map<int, int> m;
map<int, int>::iterator it;
it = m.find(a);
m[a] = it->second + b;
it=m.begin(); it!=m.end();it++
hj15. bitset and binary
bitset<32> b(5);
int ans = b.count(); // number of bits that are set
// in this case ans = 2
hj21. password and string.find()
// don’t ever try to to_string(char) because it turns it into its ASCII value
// check https://www.geeksforgeeks.org/string-find-in-cpp/
hj22. a strange question
again!
hj23. a very good practice question
again!
hj31. how to reverse words in a string?
again!
边栏推荐
- The construction and usage of wampserver framework
- Teach you to write non maintainable PHP code step by step
- February 20ctf record
- Svg code snippet of loading animation
- 电子协会 C语言 1级 28 、字符菱形
- Electronic Society C language level 1 28, character diamond
- Difference between asemi high power FET and triode
- Eyeshot Ultimate 2022 Crack By Xacker
- A brief talk on media inquiry
- What if win11 Bluetooth fails to connect? Solution of win11 Bluetooth unable to connect
猜你喜欢
![H5 native player [learn video]](/img/51/83a200d0423b7274d1e981ec2ede2c.jpg)
H5 native player [learn video]

Ctfhub eggs

Wechat applet new version prompt update

Activereportsjs V3.0 comes on stage

Route parameters to jump to the page and transfer parameters -- > hidden parameter list

Summary of SQL injection (I)

API interface management setup -eolinker4.0

XSS (cross site script attack) summary (II)

IronOCR 2022.1 Crack

TeeChart Pro ActiveX 2022.1
随机推荐
IronOCR 2022.1 Crack
Database overview
dotnet-exec 0.4.0 released
The article is on the list. Welcome to learn
[relax's law of life lying on the square] those poisonous chicken soup that seem to be too light and too heavy, but think carefully and fear
CUDA compilation error
Penetration test - directory traversal vulnerability
A review of small sample learning
Working principle of asemi three-phase rectifier bridge
How to make colleagues under the same LAN connect to their own MySQL database
WPF uses Maui's self drawing logic
Handwritten promise all
[Huawei machine test] hj16 shopping list
How PHP gets the user's City
Click to jump out and drag the pop-up window
ORA-00800: soft external error
Professional things use professional people
Ctfhub eggs
【FLink】access closed classloader classloader. check-leaked-classloader
Edge loss 解读