#include <stdio.h>
int main(void) {
char name[50]; // 入力される文字列を格納する配列
int i;
scanf("%s", name
); // 文字列の入力
for (i = 0; name[i] != '\0'; i++) { // 文字列の終端までループ
printf("name[%d]=%c -> %d\n", i
, name
[i
], name
[i
]); // 文字とその文字コードを出力 }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBjaGFyIG5hbWVbNTBdOyAgLy8g5YWl5Yqb44GV44KM44KL5paH5a2X5YiX44KS5qC857SN44GZ44KL6YWN5YiXCiAgICBpbnQgaTsKCiAgICBwcmludGYoIuawj+WQjeOCkuODreODvOODnuWtl+OBp+WFpeWKm+OBl+OBpuOBj+OBoOOBleOBhDogIik7CiAgICBzY2FuZigiJXMiLCBuYW1lKTsgIC8vIOaWh+Wtl+WIl+OBruWFpeWKmwoKICAgIGZvciAoaSA9IDA7IG5hbWVbaV0gIT0gJ1wwJzsgaSsrKSB7ICAvLyDmloflrZfliJfjga7ntYLnq6/jgb7jgafjg6vjg7zjg5cKICAgICAgICBwcmludGYoIm5hbWVbJWRdPSVjIC0+ICVkXG4iLCBpLCBuYW1lW2ldLCBuYW1lW2ldKTsgIC8vIOaWh+Wtl+OBqOOBneOBruaWh+Wtl+OCs+ODvOODieOCkuWHuuWKmwogICAgfQoKICAgIHJldHVybiAwOwp9Cg==