mirror of
https://github.com/xlucn/PAT.git
synced 2026-02-07 11:32:18 +08:00
18 lines
247 B
C
18 lines
247 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
char c, s1[10001];
|
|
int s2[128] = {0};
|
|
|
|
scanf("%[^\n]%c", s1, &c);
|
|
while ((c = getchar()) != EOF && c != '\n')
|
|
s2[(int)c] = 1;
|
|
|
|
for (char *p = s1; *p; p++)
|
|
if (!s2[(int)(*p)])
|
|
putchar(*p);
|
|
|
|
return 0;
|
|
}
|