#include using namespace std; void kaeru(char* str,int n,int m); int main(void){ char* str; int n,m; cin >> str; cin >> n >> m; kaeru(str,n,m); cout << str << '\n'; return 0; } void kaeru(char* str,int n,int m){ char tmp; tmp=*(str+n); *(str+n)=*(str+m); *(str+m)=tmp; }