Masala #G7PKCTZ1NZ

Xotira 32 MB Vaqt 1000 ms
14

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