0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 19:56:28 +00:00
OI-codes/AtCoder/ABC236/A/A.cpp

18 lines
265 B
C++
Raw Normal View History

#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;
}