关闭

PAT 1050. String Subtraction (20)

标签: PAT
189人阅读 评论(0) 收藏 举报
分类:
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<iostream>
#include<vector>
#include<queue>
#include<algorithm>
using namespace std;
#define maxsize 10001
#define  MIN -10001

int main()
{

    char s1[maxsize],s2[maxsize];
    gets(s1);
    gets(s2);
    for(int i=0;s1[i]!='\0';i++)
        if(strchr(s2,s1[i])==NULL)
          printf("%c",s1[i]);
    printf("\n");


    return 0;
}

0
0
查看评论

PAT 1050. String Subtraction (20)

Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to c...
  • binyuapple
  • binyuapple
  • 2014-10-11 12:27
  • 205

1050. String Subtraction (20)-PAT

1050. String Subtraction (20) 时间限制 10 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard Given two s...
  • zoushidexing
  • zoushidexing
  • 2013-08-07 10:13
  • 856

pat 1050. String Subtraction (20)

1050. String Subtraction (20) 时间限制 10 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue...
  • wyh7280
  • wyh7280
  • 2015-07-19 18:50
  • 243

【PAT】1050. String Subtraction

#include #include #include #include using namespace std; int h[130]; int main() { #ifdef LOCAL freopen("data.in","r&qu...
  • KID_LWC
  • KID_LWC
  • 2017-01-23 22:36
  • 94

1050. String Subtraction (20)

时间限制 10 ms 内存限制 32000 kB 代码长度限制 16000 B 判题程序 Standard Given two strings S1 and S2, S = S1 - ...
  • sheng_xc
  • sheng_xc
  • 2013-09-22 16:44
  • 656

PAT 1050. String Subtraction

题目:http://pat.zju.edu.cn/contests/pat-a-practise/1050 题解: 代码: #include #include #include #include #include #include #include using namespace std; #def...
  • ACM_Ted
  • ACM_Ted
  • 2014-02-28 17:45
  • 860

【PAT甲级】1050. String Subtraction (20)

#include <stdio.h> #include <string.h>int main(int argc, char *argv[]) { char a[10001]; char b[10001]; int map[1000] = {0}; ...
  • lambsnow
  • lambsnow
  • 2016-10-26 23:23
  • 99

PAT甲级1050. String Subtraction (20)

Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to c...
  • liaotl10
  • liaotl10
  • 2017-02-28 21:41
  • 79

PAT A 1050. String Subtraction (20)

题目 Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1.  Your task is...
  • xyzchenzd
  • xyzchenzd
  • 2014-05-19 12:39
  • 371

1050. String Subtraction (20)-PAT甲级

题目:Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply t...
  • ZZLCSDN2017
  • ZZLCSDN2017
  • 2017-04-17 14:10
  • 129
    个人资料
    • 访问:18142次
    • 积分:756
    • 等级:
    • 排名:千里之外
    • 原创:56篇
    • 转载:11篇
    • 译文:0篇
    • 评论:5条
    最新评论