Problems
Делаем срезы
Який 3 тест?
Нормальний він -_-
include <bits/stdc++.h>
define ll long long
define ld long double
using namespace std; int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string n;
cin >> n;
cout << n[2] << endl
<< n[n.length() - 2] << endl
<< n.substr(0, 5) << endl
<< n.substr(0, n.length() - 2) << endl;
for (int i = 0; i < n.size(); i++)
if (i % 2 == 0)
cout << n[i];
cout << endl;
for (int i = 0; i < n.size(); i++)
if (i % 2 == 1)
cout << n[i];
cout << endl;
for (int i = n.size() - 1; i >= 0; i--)
cout << n[i];
cout << endl;
for (int i = n.size() - 1; i >= 0; i--)
if (i % 2 == (n.size() % 2 ? 0 : 1))
cout << n[i];
cout << endl
<< n.size() << endl;
} //TECHNOBLADE NEVER DIE