Masala C
Switcheroo
Given a string made up of letters a, b, and/or c, switch the position of letters a and b (change a to b and vice versa). Leave any incidence of c untouched.
Kiruvchi ma'lumotlar:
Chiquvchi ma'lumotlar:
Misollar
| # | input.txt | output.txt |
|---|---|---|
| 1 |
aaaa |
bbbb |
| 2 |
bbbb |
aaaa |