Q

백준 9086

백준 9086번 문제


C code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <string.h>

int main(void)
{
int n = 0;

scanf("%d", &n);

for(int i = 0; i < n; i++)
{
char s[100] = "";

scanf("%s", s);

printf("%c%c\n", s[0], s[strlen(s)-1]);
}

return 0;
}