ABC210(A-C)

A

#include
using namespace std;
int main()
{
    int n,a,x,y;
    cin>>n>>a>>x>>y;
    if(n<=a)cout<

B

#include
using namespace std;
int main()
{
    int n;
    cin>>n;
    string s;
    cin>>s;
    int l=s.length();
    int i;
    for(i=0;i

C

#include
#define ll long long
using namespace std;
int main()
{
    ll n,k;
    cin>>n>>k;
    ll num[n];
    map mp;
    for(ll i=0;i>num[i];
    }
    ll max=0;
    for(ll i=0;imax)max=mp.size();
    }
    cout<

学习:

map中值为0时不代表整个键值对删除,要使用earse函数删除

mp.erase(num[i]);

你可能感兴趣的:(AtCoder,c语言,c++,算法)