#include <stdio.h>
int main(void)
{
int t;
int n1,n2,n3,n4,n5,n6,n7,n8;
while(scanf("%d%d%d%d%d%d%d%d%d",&t,&n1,&n2,&n3,&n4,&n5,&n6,&n7,&n8)!=EOF){
if(t<0 || t>20)
return 0;
printf("%d %d %d %d %d\n",n1,n2,n3,n4,(n4+n2-n1));
printf("%d %d %d %d %d\n",n5,n6,n7,n8,n8*(n6/n5));
}
return 0;
}
#include
int main(void)
{
int t;
int n1,n2,n3,n4,n5,n6,n7,n8;
while(scanf("%d%d%d%d%d%d%d%d%d",&t,&n1,&n2,&n3,&n4,&n5,&n6,&n7,&n8)!=EOF){
if(t20)
return 0;
printf("%d %d %d %d %d\n",n1,n2,n3,n4,(n4+n2-n1));
printf("%d %d %d %d %d\n",n5,n6,n7,n8,n8*(n6/n5));
}
return 0;
}
t是數列的數目
一個數列4個數