#include<stdio.h>
#include<stdlib.h>
typedef struct{
char name[20];
int unit;
double height;
double weight;
}PROFILE;
void input(PROFILE data[], int n);
void output(PROFILE data[], int n);
int main(void){
int n;
PROFILE *data;
if((data
= (PROFILE
*)malloc(sizeof(PROFILE
) * n
)) == NULL
){ }
input(data, n);
output(data, n);
return 0;
}
void input(PROFILE data[], int n){
int i;
for(i = 0; i < n; i++){
scanf("%s", data
[i
].
name); scanf("%d", &data
[i
].
unit); scanf("%lf", &data
[i
].
height); scanf("%lf", &data
[i
].
weight); }
return;
}
void output(PROFILE data[], int n){
int i;
for(i = 0; i < n; i++){
printf("名前:%s 取得単位数:%d 身長:%.1f 体重:%.1f\n", data[i].name,data[i].unit,data[i].height, data[i].weight);
}
return;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+Cgp0eXBlZGVmIHN0cnVjdHsKICAgIGNoYXIgbmFtZVsyMF07CglpbnQgdW5pdDsKCWRvdWJsZSBoZWlnaHQ7Cglkb3VibGUgd2VpZ2h0Owp9UFJPRklMRTsKCnZvaWQgaW5wdXQoUFJPRklMRSBkYXRhW10sIGludCBuKTsKdm9pZCBvdXRwdXQoUFJPRklMRSBkYXRhW10sIGludCBuKTsKCmludCBtYWluKHZvaWQpewoKCWludCBuOwoJUFJPRklMRSAqZGF0YTsKCglwcmludGYoIuS6uuaVsDoiKTsKCXNjYW5mKCIlZCIsJm4pOwoKCWlmKChkYXRhID0gKFBST0ZJTEUgKiltYWxsb2Moc2l6ZW9mKFBST0ZJTEUpICogbikpID09IE5VTEwpewoJCXB1dHMoIuODoeODouODquOBrueiuuS/neOBq+WkseaVl+OBl+OBvuOBl+OBn+OAgiIpOwoJCWV4aXQoMSk7Cgl9CglpbnB1dChkYXRhLCBuKTsKCW91dHB1dChkYXRhLCBuKTsKCglmcmVlKGRhdGEpOwoJCglyZXR1cm4gMDsKfQoKdm9pZCBpbnB1dChQUk9GSUxFIGRhdGFbXSwgaW50IG4pewoKCWlud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