#include int main() { int t, u; int i=0; char s[51]; char new_name[50]; //名前sを入力 scanf("%s", s); //t,uを入力 scanf("%t %u", &t, &u); if (u == t){ while (s[i] != '\0'){ if (i == u){ i++; } new_name[i] = s[i]; i++; } } else{ while (s[i] != '\0'){ if (i == u){ i++; } else if (i == t){ i++; } else{ new_name[i] = s[i]; i++; } } } printf("%s\n", new_name); return 0; }