#include <stdio.h>
int main(void) {
char d[10];
int i;
for (i = 0; i < 10; i++) {
d[i] = 'g';
}
// 配列サイズを超えないよう安全に文字列を入力
scanf("%9s", d
); // 最大9文字(ヌル文字を含めて10文字以内)
for (i = 0; i < 10; i++) {
printf("d[%d]=%c->%d\n", i
, d
[i
], d
[i
]); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CQoJY2hhciBkWzEwXTsJCglpbnQgaTsJCgkKCWZvciAoaSA9IDA7IGkgPCAxMDsgaSsrKSB7CgkJZFtpXSA9ICdnJzsKCX0KCgkvLyDphY3liJfjgrXjgqTjgrrjgpLotoXjgYjjgarjgYTjgojjgYblronlhajjgavmloflrZfliJfjgpLlhaXlipsKCXNjYW5mKCIlOXMiLCBkKTsgLy8g5pyA5aSnOeaWh+Wtl++8iOODjOODq+aWh+Wtl+OCkuWQq+OCgeOBpjEw5paH5a2X5Lul5YaF77yJCgkKCWZvciAoaSA9IDA7IGkgPCAxMDsgaSsrKSB7CgkJcHJpbnRmKCJkWyVkXT0lYy0+JWRcbiIsIGksIGRbaV0sIGRbaV0pOwoJfQoKCXJldHVybiAwOwp9Cg==