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