ამ გვერდზე თქვენ იხილავთ გაგზავნილი ამოხსნების სტატუსს.
გაგზავნის თარიღი: 21.01.2023 22:24:14
ამოცანა: ადგილის გაცვლა
მომხმარებელი: hpstar
ვერდიქტი: სრული ამოხსნა
შეფასება: 100.0 ქულა
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a,b; cin >> a >> b; swap(s[a-1],s[b-1]); cout << s; return 0; }
grelnandia 4 5
grenlandia
grenlandia
YES
international 3 8
international
international
YES
tarticipanp 1 11
participant
participant
YES
amthematic 1 2
mathematic
mathematic
YES
wordl 4 5
world
world
YES
sebmittud 2 8
submitted
submitted
YES
relationshpi 12 11
relationship
relationship
YES
gepresentinr 12 1
representing
representing
YES
contetsant 7 6
contestant
contestant
YES
ot 1 2
to
to
YES