问题:
样例输入
2
13512345678
13787600321
样例输出
645678
600321
代码(1):
#include<stdio.h>
#include<string.h>
int main()
{
int a,b,i,n;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%6d%5d",&a,&b);
printf("6%d\n",b);
}
return 0;
}
代码(2)
#include<stdio.h>
#include<string.h>
int
main()
{
int
n,a,b,c,d,e,f;
while
(~
scanf
(
"%d"
,&n))
while
(n--)
{
scanf
(
"%6d%1d%1d%1d%1d%1d"
,&a,&b,&c,&d,&e,&f);
printf
(
"6%1d%1d%1d%1d%1d\n"
,b,c,d,e,f);
}
return
0;
}