#include <bits/stdc++.h>
using namespace std;
int a[6];
map<int, string> mp;
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
// 插入方法(最简洁的两种)
mp.emplace(20, "hello");
mp[20] = "hello";
//
mp.erase(20); // 通过key删除
mp.size();
mp.empty();
cout << mp.count(20); // 计算key为20的个数
for(auto& x: mp)if(x.first == 20)x.second = "world";
if(mp.find(20) != mp.end())cout << "ok" << '\n'; // 只能判断是否存在
return 0;
}