您当前的位置: 首页 > 

*DDL_GzmBlog

暂无认证

  • 3浏览

    0关注

    605博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

(Map映射) 牛客小白月赛33 D 购物

*DDL_GzmBlog 发布时间:2021-05-18 21:39:06 ,浏览量:3

https://ac.nowcoder.com/acm/contest/11210/D

总结

很简单一个字符串映射练手题 又写了一个水题,感觉又对不起自己的良心了

code:
#include 
using namespace std;
map mp;
map st;
map::iterator it;
int main()
{
    int t;
    cin>>t;
    while(t-- )
    {
        int n,m;
        cin>>n>>m;
        for(int i=1; i>s;
            int x;
            cin>>x;
            mp[s] +=x;
        }
        for(int i=1; i>k;
            for(int j=1; j>s;
                st[s] ++;
            }

            for(it=mp.begin(); it!=mp.end(); it++)
            {

                if(!st[it->first])
                {
                    it->second--;
                   // cout            
关注
打赏
1657615554
查看更多评论
0.1260s