HDU/2081/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

17 lines
298 B
C

#include <stdio.h>
int main(void){
int numbers;
scanf("%d",&numbers);
int i;
char phone[12],short_num[7]={'6'};
for(i = 0; i < numbers; i++){
scanf("%s",phone);
int k;
for(k = 6; k < 11; k++) short_num[k-5] = phone[k];
short_num[6] = '\0';
printf("%s\n",short_num);
}
return 0;
}