文章
2
粉丝
330
获赞
4
访问
3.4k
 
```
#include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pii pair<int,int>
#define int long long 
#define endl '\n'
signed main(){
    string str;
    while(getline(cin,str)){
        int tmp=0,cnt=0;
        map<int,pii>mp;
        for(int i=0;str[i];i++){
            if(str[i]!=','){
                tmp=tmp*10+str[i]-'0';
            }else{
                ++cnt;
                //cout<<tmp<<"-----"<<cnt<<endl;
             &nb...
登录后发布评论
暂无评论,来抢沙发