• 2024-08-25redis操作
    ``1、string—Strings使用场景:计数器setnameqiyegetnamekeys*查看所有的KEYappappendname1jack2getnameappendnamejackgetnamedelname删除设置多个msetname1jack1name2jack2查看多个mgetname1name2自加:incr自减:decr加:incrby
  • 2023-06-23互送礼物
     #include<iostream>#include<map>#include<bits/stdc++.h>usingnamespacestd;map<string,int>name_mon;intmain(intargc,char**argv){ stringname[15],zname,pname; intn,mon,m; cin>>n; for(inti=0;i<n;i++){
  • 2023-06-23算法
      #include<iostream>#include<bits/stdc++.h>usingnamespacestd;map<string,int>na_mo;intmain(){stringname[15],Zname,Pname;intn,mony,m;cin>>n;for(inti=0;i<n;i++){cin>>name[i];}
  • 2023-06-23互送礼物
    1#include<iostream>2#include<map>3usingnamespacestd;4map<string,int>na_mo;5intmain(intargc,char**argv){6intx;7cin>>x;8stringZname,n[x],m;9intr,qian;10for(inti=0;i<x;i+