АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1898. Last occurence

Time Limit: 1 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added debug

В строке str заменить последнее вхождение строки sub на строку rep.

Input

Вводится вначале строка str, затем строка sub, затем строка rep

Output

Выведите одну строку - результат замены

Sample

InputOutput
abcdebcdx
bcd
fgh
abcdefghx

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest for seventh graders on strings /
1897. 4 - Number of occurrences 1898. 1899. 6 - Doubling of character 1900. 7 - Removing of extra spaces 1901. 8 - Check of brackets
Educational Courses / C++ Programming Language / Strings /
1897. 04 - Number of occurrences 1898. 1899. 06 - Doubling of character 1900. 07 - Removing of extra spaces 1901. 08 - Check of brackets
Educational Courses / Programming and Basics of Algorithmization / Lists and strings for intermediates /
1353. 04 - 16 -> 20 1898.
time generating 0.093 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.