0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-05 02:26:26 +00:00
OI-codes/AtCoder/ABC236/A/A.cpp

18 lines
265 B
C++

#include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
int main() {
std::string s;
int a, b;
cin >> s >> a >> b;
char c = s[a - 1];
s[a - 1] = s[b - 1];
s[b - 1] = c;
cout << s << endl;
return 0;
}