ამ გვერდზე თქვენ იხილავთ გაგზავნილი ამოხსნების სტატუსს.
გაგზავნის თარიღი: 22.01.2023 14:49:54
ამოცანა: ოპერაციები სტრიქონზე
მომხმარებელი: hpstar
ვერდიქტი: სრული ამოხსნა
შეფასება: 100.0 ქულა
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = s.size(); for(int i = 4; i< n;i++){ cout << s[i] ; } cout << endl<< s[n-4] << s[n-3] << s[n-2] << s[n-1] << endl; cout << s[0] << s[2] << s[n-1]<<endl; for(int i = n-1 ; i >= 0 ;i-- ){ if(i % 2 == 0) { cout << s[i]; } } return 0; }
participant
icipant pant prt taiirp
icipant pant prt taiirp
YES
world
d orld wrd drw
d orld wrd drw
YES
computer
uter uter cmr eumc
uter uter cmr eumc
YES
country
try ntry cuy ytuc
try ntry cuy ytuc
YES
Olympiad
piad piad Oyd apyO
piad piad Oyd apyO
YES
collaboration
aboration tion cln niaoalc
aboration tion cln niaoalc
YES
international
rnational onal itl lniarti
rnational onal itl lniarti
YES
relationships
tionships hips rls sisotlr
tionships hips rls sisotlr
YES
native
ve tive nte vtn
ve tive nte vtn
YES
school
ol hool shl ohs
ol hool shl ohs
YES