mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 02:58:48 +00:00
parent
408c70cbf4
commit
cb4719c0c9
17
AtCoder/ABC236/A/A.cpp
Normal file
17
AtCoder/ABC236/A/A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user