0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 18:31:59 +00:00

A - chukodai

https://atcoder.jp/contests/abc236/submissions/28720343
This commit is contained in:
Baoshuo Ren 2022-01-23 20:02:05 +08:00
parent 408c70cbf4
commit cb4719c0c9
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

17
AtCoder/ABC236/A/A.cpp Normal file
View File

@ -0,0 +1,17 @@
#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;
}