eolymp
bolt
Try our new interface for solving problems
Problems

Reverse a substring

published at 1/13/12, 7:08:46 pm

почуму в первом примере на выходе маленькая а на входе большая z?

awpris replied:
исправлено. Спасибо!
published at 7/11/22, 11:28:50 pm

#6 i #33 - там тільки 2 елемента. Приклад: ab 1 2

published at 1/5/24, 11:23:02 pm

include <bits/stdc++.h>

using namespace std; char a[1001],b; int i,j; int main () { cin>>a>>i>>j; while(i<=j){ b=a[i-1]; a[i-1]=a[j-1]; a[j-1]=b; i++; j--; } cout<<a<<endl; }