mirror of
https://github.com/xlucn/PAT.git
synced 2026-10-03 00:23:15 +08:00
22 lines
304 B
C
22 lines
304 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
char c;
|
|
int lines = 0, ascii[128] = {0};
|
|
|
|
while(lines < 2)
|
|
{
|
|
c = getchar();
|
|
if(c == '\n')
|
|
lines++;
|
|
else if(!ascii[(int)c])
|
|
{
|
|
putchar(c);
|
|
ascii[(int)c]++;
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|