码迷,mamicode.com
首页 > 其他好文 > 详细

1093 字符串A+B (20 分)

时间:2019-03-01 13:02:45      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:cout   get   字符   length   bit   ++   long   c++   sig   

#include <bits/stdc++.h>
using namespace std;
#define ll long long

int main()
{
    string s1,s2;
    int sign[200]={0};
    getline(cin,s1);
    getline(cin,s2);
    string s3 = s1+s2;
    for(int i=0;i<s3.length();i++)
    {
        if(sign[s3[i]]==0)
        {
            cout<<s3[i];
            sign[s3[i]]=1;
        }
    }
    return 0;
}

 

1093 字符串A+B (20 分)

标签:cout   get   字符   length   bit   ++   long   c++   sig   

原文地址:https://www.cnblogs.com/tonyyy/p/10455444.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!