Skip to content

Latest commit

 

History

History
360 lines (240 loc) · 49.2 KB

TEXT.md

File metadata and controls

360 lines (240 loc) · 49.2 KB

Text 1

en Given a file name and two positive integers N and K, create a new text file with this name. The file must contain N lines, each line consists of K characters "*".

ru Дано имя файла и целые положительные числа N и K. Создать текстовый файл с указанным именем и записать в него N строк, каждая из которых состоит из K символов «*» (звездочка).


Text 2

en Given a file name and an integer N (0 < N < 27), create a new text file with this name. The file must contain N lines, the first line consisting of one Latin small letter "a", the second one consisting of two letters "ab", and so on; the last line must consist of N initial small letters of the English alphabet.

ru Дано имя файла и целое число N (0 < N < 27). Создать текстовый файл с указанным именем и записать в него N строк: первая строка должна содержать строчную (т. е. маленькую) латинскую букву «a», вторая — буквы «ab», третья — буквы «abc» и т. д.; последняя строка должна содержать N начальных строчных латинских букв в алфавитном порядке.


Text 3

en Given a file name and an integer N (0 < N < 27), create a new text file with this name. The file must contain N lines of length N. The K-th line (K = 1, …, N) must begin with K initial capital letters of the English alphabet and must end with the characters "". For instance, if N equals 4 then lines of the resulting file must be as follows: "A**", "AB**", "ABC*", "ABCD".

ru Дано имя файла и целое число N (0 < N < 27). Создать текстовый файл с указанным именем и записать в него N строк длины N; строка с номером K (K = 1, …, N) должна содержать K начальных прописных (т. е. заглавных) латинских букв, дополненных справа символами «» (звездочка). Например, для N = 4 файл должен содержать строки «A**», «AB**», «ABC*», «ABCD».


Text 4

en Given a text file, output the amount of its characters and lines. EOLN (end-of-line) and EOF (end-of-file) markers must not be counted.

ru Дан текстовый файл. Вывести количество содержащихся в нем символов и строк (маркеры концов строк EOLN и конца файла EOF при подсчете количества символов не учитывать).


Text 5

en Given a string S and a text file, add the string S to the end of the file.

ru Дана строка S и текстовый файл. Добавить строку S в конец файла.


Text 6

en Given two text files, add the contents of the second file to the end of the first one.

ru Даны два текстовых файла. Добавить в конец первого файла содержимое второго файла.


Text 7

en Given a string S and a text file, add the string S to the beginning of the file.

ru Дана строка S и текстовый файл. Добавить строку S в начало файла.


Text 8

en Given two text files, add the contents of the second file to the beginning of the first one.

ru Даны два текстовых файла. Добавить в начало первого файла содержимое второго файла.


Text 9

en Given an integer K and a text file, insert an empty line before the file line with the order number K. If the file does not contain a line with the required number then do not change it.

ru Дано целое число K и текстовый файл. Вставить пустую строку перед строкой файла с номером K. Если строки с таким номером нет, то оставить файл без изменений.


Text 10

en Given an integer K and a text file, insert an empty line after the file line with the order number K. If the file does not contain a line with the required number then do not change it.

ru Дано целое число K и текстовый файл. Вставить пустую строку после строки файла с номером K. Если строки с таким номером нет, то оставить файл без изменений.


Text 11

en Given a text file, double occurrences of all empty lines of the file.

ru Дан текстовый файл. Продублировать в нем все пустые строки.


Text 12

en Given a string S and a text file, replace all empty lines of the file with the contents of the string S.

ru Дана строка S и текстовый файл. Заменить в файле все пустые строки на строку S.


Text 13

en Given a nonempty text file, remove its first line.

ru Дан непустой текстовый файл. Удалить из него первую строку.


Text 14

en Given a nonempty text file, remove its last line.

ru Дан непустой текстовый файл. Удалить из него последнюю строку.


Text 15

en Given an integer K and a text file, remove the file line with the order number K. If the file does not contain a line with the required number then do not change it.

ru Дано целое число K и текстовый файл. Удалить из файла строку с номером K. Если строки с таким номером нет, то оставить файл без изменений.


Text 16

en Given a text file, remove all empty lines from the file.

ru Дан текстовый файл. Удалить из него все пустые строки.


Text 17

en Given two text files, add each line of the second file to the end of the corresponding line of the first one. If the second file is shorter (in lines) than the first one then do not change the remaining lines of the first file.

ru Даны два текстовых файла. Добавить в конец каждой строки первого файла соответствующую строку второго файла. Если второй файл короче первого, то оставшиеся строки первого файла не изменять.


Text 18

en Given an integer K and a text file, remove K leading characters from each line of the file. If the length of some line is less than K then remove all characters from the line.

ru Дано целое число K и текстовый файл. Удалить из каждой строки файла первые K символов (если длина строки меньше K, то удалить из нее все символы).


Text 19

en Given a text file, replace all its Latin capital letters with the corresponding small letters, and all Latin small letters with the capital ones.

ru Дан текстовый файл. Заменить в нем все прописные русские буквы на строчные, а все строчные — на прописные.


Text 20

en Given a text file, replace its successive blank characters with the single blank character.

ru Дан текстовый файл. Заменить в нем все подряд идущие пробелы на один пробел.


Text 21

en Given a text file that contains more than three lines, remove its last three lines.

ru Дан текстовый файл, содержащий более трех строк. Удалить из него последние три строки.


Text 22

en Given an integer K (0 < K < 10) and a text file that contains more than K lines, remove its last K lines.

ru Дано целое число K (0 < K < 10) и текстовый файл, содержащий более K строк. Удалить из файла последние K строк.


Text 23

en An integer K (0 < K < 10) and a text file that contains more than K lines are given. Create a new file that contains K last lines of the given file.

ru Дано целое число K (0 < K < 10) и текстовый файл, содержащий более K строк. Создать новый текстовый файл, содержащий K последних строк исходного файла.


Text 24

en A text file is given. Find the amount of paragraphs of the given text provided that paragraphs are separated by one or more empty lines.

ru Дан текстовый файл. Найти количество абзацев в тексте, если абзацы отделяются друг от друга одной или несколькими пустыми строками.


Text 25

en An integer K and a text file are given. Remove a paragraph with the order number K from the given file provided that paragraphs are separated by one or more empty lines. Empty lines must not be removed. If the file does not contain a paragraph with the required number then do not change it.

ru Дано целое число K и текстовый файл. Удалить из файла абзац с номером K (абзацы отделяются друг от друга одной или несколькими пустыми строками). Пустые строки, предшествующие и следующие за удаляемым абзацем, не удалять. Если абзац с данным номером отсутствует, то оставить файл без изменений.


Text 26

en A text file is given. Find the amount of paragraphs of the given text provided that the first line of each paragraph is indented by five blank characters. Empty lines must not be counted.

ru Дан текстовый файл. Найти количество абзацев в тексте, если первая строка каждого абзаца начинается с 5 пробелов («красная строка»). Пустые строки между абзацами не учитывать.


Text 27

en An integer K and a text file are given. Remove a paragraph with the order number K from the given file provided that the first line of each paragraph is indented by five blank characters. Empty lines must not be counted and removed. If the file does not contain a paragraph with the required number then do not change it.

ru Дано целое число K и текстовый файл. Удалить из файла абзац с номером K (абзацы выделяются с помощью красной строки — см. задание Text26). Пустые строки между абзацами не учитывать и не удалять. Если абзац с данным номером отсутствует, то оставить файл без изменений.


Text 28

en A text file is given. The file does not contain empty lines, the first line of each paragraph is indented by five blank characters. Insert an empty line between adjacent paragraphs (do not insert empty lines to the beginning and end of the file).

ru Дан текстовый файл. Абзацы выделяются в нем с помощью красной строки (см. задание Text26), а пустых строк нет. Вставить между соседними абзацами по одной пустой строке (в начало и конец файла пустые строки не добавлять).


Text 29

en A text file is given. Output its first word of the maximal length. A word is defined as a character sequence that does not contain blank characters and is bounded by blank characters or the line beginning/end.

ru Дан текстовый файл. Вывести первое слово текста наибольшей длины. Словом считать набор символов, не содержащий пробелов и ограниченный пробелами или началом/концом строки.


Text 30

en A text file is given. Output its last word of the minimal length. A word is defined as a character sequence that does not contain blank characters and is bounded by blank characters or the line beginning/end.

ru Дан текстовый файл. Вывести последнее слово текста наименьшей длины. Словом считать набор символов, не содержащий пробелов и ограниченный пробелами или началом/концом строки.


Text 31

en An integer K and a text file are given. Create a new binary file of strings that contains all words of length K from the given file. A word is defined as a character sequence that does not contain blank characters, punctuation marks and is bounded by blank characters, punctuation marks or the line beginning/end. If the given file does not contain words of length K then the resulting file must be empty.

ru Дано целое число K и текстовый файл. Создать строковый файл и записать в него все слова длины K из исходного файла. Словом считать набор символов, не содержащий пробелов, знаков препинания и ограниченный пробелами, знаками препинания или началом/концом строки. Если исходный файл не содержит слов длины K, то оставить результирующий файл пустым.


Text 32

en A char C that is a Latin capital letter and a text file are given. Create a new binary file of strings that contains words of the given text with the first character C (of uppercase or lowercase). A word is defined as a character sequence that does not contain blank characters, punctuation marks and is bounded by blank characters, punctuation marks or the line beginning/end. If the given file does not contain the required words then the resulting file must be empty.

ru Дан символ Cпрописная (заглавная) русская буква и текстовый файл. Создать строковый файл и записать в него все слова из исходного файла, начинающиеся на эту букву (прописную или строчную). Словом считать набор символов, не содержащий пробелов, знаков препинания и ограниченный пробелами, знаками препинания или началом/концом строки. Если исходный файл не содержит подходящих слов, то оставить результирующий файл пустым.


Text 33

en A char C that is a Latin small letter and a text file are given. Create a new binary file of strings that contains words of the given text with at least one character C (of uppercase or lowercase). A word is defined as a character sequence that does not contain blank characters, punctuation marks and is bounded by blank characters, punctuation marks or the line beginning/end. If the given file does not contain the required words then the resulting file must be empty.

ru Дан символ Cстрочная (маленькая) русская буква и текстовый файл. Создать строковый файл и записать в него все слова из исходного файла, содержащие хотя бы одну букву C (прописную или строчную). Словом считать набор символов, не содержащий пробелов, знаков препинания и ограниченный пробелами, знаками препинания или началом/концом строки. Если исходный файл не содержит подходящих слов, то оставить результирующий файл пустым.


Text 34

en A text file whose lines are left-aligned is given. Make the given text right-aligned by means of adding leading blank characters to all nonempty lines. The width of text must be equal to 50 characters.

ru Дан текстовый файл, содержащий текст, выровненный по левому краю. Выровнять текст по правому краю, добавив в начало каждой непустой строки нужное количество пробелов (ширину текста считать равной 50).


Text 35

en A text file whose lines are left-aligned is given. Make the given text centered by means of adding leading blank characters to all nonempty lines. The width of text must be equal to 50 characters. If the length of line is an odd number then add one blank character to the beginning of this line before centering.

ru Дан текстовый файл, содержащий текст, выровненный по левому краю. Выровнять текст по центру, добавив в начало каждой непустой строки нужное количество пробелов (ширину текста считать равной 50). Строки нечетной длины перед центрированием дополнять слева пробелом.


Text 36

en A text file whose lines are right-aligned is given. Make the given text centered by means of removing a half of leading blank characters from all nonempty lines. If the amount of leading blank characters of line is an odd number then remove one blank character from the beginning of this line before centering.

ru Дан текстовый файл, содержащий текст, выровненный по правому краю. Выровнять текст по центру, удалив из каждой непустой строки половину начальных пробелов. В строках с нечетным количеством начальных пробелов перед центрированием удалять первый начальный пробел.


Text 37

en A text file whose lines are left-aligned is given. Paragraphs of the given text are separated by one empty line. Make the given text full-aligned (that is, left-aligned and right-aligned simultaneously) by means of inserting additional blank characters between words in all nonempty lines except the last line of each paragraph. Spaces between words in each line must be processed from right to left; the width of text must be equal to 50 characters.

ru Дан текстовый файл, содержащий текст, выровненный по левому краю. Абзацы текста разделяются одной пустой строкой. Выровнять текст по ширине (т. е. и по левому, и по правому краю), увеличив в каждой непустой строке (кроме последних строк абзацев) количество пробелов между словами, начиная с последнего пробела в строке (ширину текста считать равной 50).


Text 38

en An integer K (> 25) and a text file, whose lines are left-aligned, are given. Paragraphs of the given text are separated by one empty line. Format the given text so that all its lines consist of no more than K characters. The resulting text must contain the same paragraphs and be left-aligned. Blank characters at the end of lines must be removed. Save the formatted text in a new text file.

ru Дано целое число K (> 25) и текстовый файл, содержащий текст, выровненный по левому краю. Абзацы текста отделяются друг от друга одной пустой строкой. Отформатировать текст так, чтобы его ширина не превосходила K позиций, и выровнять текст по левому краю, сохранив деление на абзацы. Пробелы в конце строк удалить. Сохранить отформатированный текст в новом текстовом файле.


Text 39

en An integer K (> 25) and a text file, whose lines are left-aligned, are given. The file does not contain empty lines, the first line of each paragraph is indented by five blank characters. Format the given text so that all its lines consist of no more than K characters. The resulting text must contain the same paragraphs and be left-aligned. Blank characters at the end of lines must be removed. Save the formatted text in a new text file.

ru Дано целое число K (> 25) и текстовый файл, содержащий текст, выровненный по левому краю. Абзацы выделяются в нем с помощью красной строки (5 начальных пробелов), а пустых строк нет. Отформатировать текст так, чтобы его ширина не превосходила K позиций, и выровнять текст по левому краю, сохранив деление на абзацы. Пробелы в конце строк удалить. Сохранить отформатированный текст в новом текстовом файле.


Text 40

en Two files of integers are given; the files contain the equal amount of components. Create a new text file that contains string representations of components of the given binary files. These representations must be arranged in two columns, each of 30 characters width (the first and second columns contain components of the first and second file respectively). Each line of the resulting text must start and end with "|" separator (the numeric value 124), all string representations of integers are right-aligned with respect to column boundary.

ru Даны два файла целых чисел одинакового размера. Создать текстовый файл, содержащий эти числа, расположенные в два столбца шириной по 30 символов (в первом столбце содержатся числа из первого исходного файла, во втором — из второго файла). В начало и конец каждой строки текстового файла добавить разделитель «|» (код 124). Числа выравниваются по правому краю столбца.


Text 41

en Three files of integers are given; the files contain the equal amount of components. Create a new text file that contains string representations of components of the given binary files. These representations must be arranged in three columns, each of 20 characters width (the first, second, and third columns contain components of the corresponding file). Each line of the resulting text must start and end with "|" separator (the numeric value 124), all string representations of integers are left-aligned with respect to column boundary.

ru Даны три файла целых чисел одинакового размера. Создать текстовый файл, содержащий эти числа, расположенные в три столбца шириной по 20 символов (в каждом столбце содержатся числа из соответствующего исходного файла). В начало и конец каждой строки текстового файла добавить разделитель «|» (код 124). Числа выравниваются по левому краю столбца.


Text 42

en Real numbers A, B and an integer N are given. Create a text file that contains table of values of the function (x)1/2 at points of the segment [AB] with the step H = (B − A)/N (that is, at the points A, A + H, A + 2·H, …, B). The table consists of two columns, the first column contains arguments x, the second one contains the function values (x)1/2. The width of the columns is 10 and 15 characters respectively; the width of the fractional part of arguments and function values is 4 and 8 respectively; all string representations of numbers are right-aligned with respect to column boundary.

ru Даны вещественные числа A, B и целое число N. Создать текстовый файл, содержащий таблицу значений функции (x)1/2 на промежутке [AB] с шагом (B − A)/N. Таблица состоит из двух столбцов: с аргументами x (10 позиций, из них 4 под дробную часть) и со значениями (x)1/2 (15 позиций, из них 8 под дробную часть). Столбцы выравниваются по правому краю.


Text 43

en Real numbers A, B and an integer N are given. Create a text file that contains table of values of the functions sin(x) and cos(x) at points of the segment [AB] with the step H = (B − A)/N (that is, at the points A, A + H, A + 2·H, …, B). The table consists of three columns, the first column contains arguments x, the second and the third one contains the function values sin(x) and cos(x) respectively. The width of the first column is 8 characters, the width of the other columns is 12 characters; the width of the fractional part of arguments and function values is 4 and 8 respectively; all string representations of numbers are right-aligned with respect to column boundary.

ru Даны вещественные числа A, B и целое число N. Создать текстовый файл, содержащий таблицу значений функций sin(x) и cos(x) на промежутке [AB] с шагом (B − A)/N. Таблица состоит из трех столбцов: с аргументами x (8 позиций, из них 4 под дробную часть) и со значениями sin(x) и cos(x) (по 12 позиций, из них 8 под дробную часть). Столбцы выравниваются по правому краю.


Text 44

en A text file is given. Each line of the file represents an integer padded by several leading and trailing blank characters. Output the amount and sum of these integers.

ru Дан текстовый файл, каждая строка которого изображает целое число, дополненное слева и справа несколькими пробелами. Вывести количество этих чисел и их сумму.


Text 45

en A text file is given. Each line of the file represents an integer or real number padded by several leading and trailing blank characters. All real numbers have nonzero fractional part. Output the amount and sum of numbers with nonzero fractional part.

ru Дан текстовый файл, каждая строка которого изображает целое или вещественное число, дополненное слева и справа несколькими пробелами (вещественные числа имеют ненулевую дробную часть). Вывести количество чисел с ненулевой дробной частью и их сумму.


Text 46

en A text file is given. Each line of the file represents several integers and real numbers that are separated by one or more blank characters. All real numbers have nonzero fractional part. Create a binary file of real numbers that contains all given numbers with nonzero fractional part (in the same order).

ru Дан текстовый файл, каждая строка которого содержит изображения нескольких чисел, разделенные пробелами (вещественные числа имеют ненулевую дробную часть). Создать файл вещественных чисел, содержащий (в том же порядке) все числа из исходного файла, имеющие ненулевую дробную часть.


Text 47

en A text file is given. Each line of the file represents an integer or real number padded by several leading and trailing blank characters. All real numbers have nonzero fractional part. Output the amount and sum of integers.

ru Дан текстовый файл, каждая строка которого изображает целое или вещественное число, дополненное слева и справа несколькими пробелами (вещественные числа имеют ненулевую дробную часть). Вывести количество целых чисел и их сумму.


Text 48

en A text file is given. Each line of the file represents several integers and real numbers that are separated by one or more blank characters. All real numbers have nonzero fractional part. Create a binary file of integers that contains all integers (in the same order).

ru Дан текстовый файл, каждая строка которого содержит изображения нескольких чисел, разделенные пробелами (вещественные числа имеют ненулевую дробную часть). Создать файл целых чисел, содержащий все целые числа из исходного файла (в том же порядке).


Text 49

en A text file and a binary file of integers are given. Add a string representation of each integer from the binary file to the end of the corresponding line of the text file. If the amount of integers is less than the amount of text lines then do not change remaining text lines.

ru Дан текстовый файл и файл целых чисел. Добавить в конец каждой строки текстового файла изображение соответствующего числа из файла целых чисел. Если файл целых чисел короче текстового файла, то оставшиеся строки текстового файла не изменять.


Text 50

en A text file is given. Each line of the text file consists of a text string (of 30 characters length) and a representation of a real number. Create two binary files; the first one is a file of strings that contains text parts from the given text file, the second one is a file of real numbers that contains numbers from the given text file (in the same order).

ru Дан текстовый файл. В каждой его строке первые 30 позиций отводятся под текст, а оставшаяся часть — под вещественное число. Создать два файла: строковый файл, содержащий текстовую часть исходного файла, и файл вещественных чисел, содержащий числа из исходного файла (в том же порядке).


Text 51

en A text file is given. The file contains a table of real numbers; the table consists of three columns. The width of each column and the alignment of numbers are arbitrary. Create three binary files of real numbers; each file must contain numbers from the corresponding table column (in the same order).

ru Дан текстовый файл, содержащий таблицу из трех столбцов вещественных чисел. Ширина столбцов таблицы и способ их выравнивания являются произвольными, специальных символов-разделителей таблица не содержит. Создать три файла вещественных чисел, каждый из которых содержит числа из соответствующего столбца таблицы (в том же порядке).


Text 52

en A text file is given. The file contains a table of real numbers; the table consists of three columns. A character-separator is placed between adjacent columns, before the first column and after the last one. The width of each column and the alignment of numbers are arbitrary; a character that is used as a separator is arbitrary too. Create a binary file of integers that contains the sum of numbers from each row of the table.

ru Дан текстовый файл, содержащий таблицу из трех столбцов целых чисел. В начале и в конце каждой строки таблицы, а также между ее столбцами располагается символ-разделитель. Ширина столбцов таблицы, способ их выравнивания и вид символа-разделителя являются произвольными. Создать файл целых чисел, содержащий сумму чисел из каждой строки исходной таблицы.


Text 53

en Given a text file, create a new binary file of characters that contains all punctuation marks of the text (in the same order).

ru Дан текстовый файл. Создать символьный файл, содержащий все знаки препинания, встретившиеся в текстовом файле (в том же порядке).


Text 54

en A text file is given. Create a new binary file of characters that contains all characters of the given text (without repetitions) including blank character and punctuation marks. The order of characters is determined by their first occurrence in the text.

ru Дан текстовый файл. Создать символьный файл, содержащий все символы, встретившиеся в тексте, включая пробел и знаки препинания (без повторений). Символы располагать в порядке их первого появления в тексте.


Text 55

en A text file is given. Create a new binary file of characters that contains all characters of the given text (without repetitions) including blank character and punctuation marks. The characters must be in ascending order of their numeric values in the character set.

ru Дан текстовый файл. Создать символьный файл, содержащий все символы, встретившиеся в тексте, включая пробел и знаки препинания (без повторений). Символы располагать в порядке возрастания их кодов.


Text 56

en A text file is given. Create a new binary file of characters that contains all characters of the given text (without repetitions) including blank character and punctuation marks. The characters must be in descending order of their numeric values in the character set.

ru Дан текстовый файл. Создать символьный файл, содержащий все символы, встретившиеся в тексте, включая пробел и знаки препинания (без повторений). Символы располагать в порядке убывания их кодов.


Text 57

en A text file is given. Find the amount of occurrences of each Latin small letter and create a new binary file of strings whose components have the following format: "<a letter>–<amount of its occurrences>" (for example, "a–25"). Letters that are absent in the text should not be included in the new file. Strings of the resulting file must be in alphabetic order.

ru Дан текстовый файл. Подсчитать число появлений в нем каждой строчной (т. е. маленькой) русской буквы и создать строковый файл, элементы которого имеют вид «<буква>–<число ее появлений>» (например, «а–25»). Буквы, отсутствующие в тексте, в файл не включать. Строки упорядочить по возрастанию кодов букв.


Text 58

en A text file is given. Find the amount of occurrences of each Latin small letter and create a new binary file of strings whose components have the following format: "<a letter>–<amount of its occurrences>" (for example, "a–25"). Letters that are absent in the text should not be included in the new file. Strings of the new file must be in descending order of the amount of letter occurrences; if some letters have the equal amount of occurrences then the corresponding strings must be in alphabetic order.

ru Дан текстовый файл. Подсчитать число появлений в нем каждой строчной (т. е. маленькой) русской буквы и создать строковый файл, элементы которого имеют вид «<буква>–<число ее появлений>» (например, «а–25»). Буквы, отсутствующие в тексте, в файл не включать. Строки упорядочить по убыванию числа появлений букв, а при равном числе появлений — по возрастанию кодов букв.


Text 59

en A string S that consists of 10 digits and a text file that contains an English text are given. Encrypt the file using the right cyclic shift of any letter by SK mod 10 + 1 positions of the English alphabet, where K is the line position of the letter, characters SN of the given string S are numbered beginning with 1, and "mod" denotes the operator of taking the remainder after integer division. For instance, letters that are placed in the line positions 1, 11, 21, … are shifted by S1 positions of alphabet, letters that are placed in the line positions 2, 12, 22, … are shifted by S2 positions of alphabet, and so on). Do not change blank characters and punctuation marks.

ru Дана строка S, состоящая из 10 цифр, и файл с русским текстом. Зашифровать файл, выполнив циклическую замену каждой русской буквы, стоящей на K-й позиции строки, на букву того же регистра, расположенную в алфавите на SK-м месте после шифруемой буквы (для K = 11 снова используется смещение S1 и т. д.). Букву «ё» в алфавите не учитывать, знаки препинания и пробелы не изменять.


Text 60

en A string and a text file are given. The file contains an encrypted English text (the method of encryption is described in Text59), the string is the first decrypted line of the given text. Decrypt the file; if the given information is insufficient for decryption then do not change the given file.

ru Дана строка и файл с русским текстом, зашифрованным по правилу, описанному в задании Text59. Данная строка представляет собой первую расшифрованную строку текста. Расшифровать остальные строки и заменить в файле зашифрованный текст на расшифрованный. Если информации для расшифровки недостаточно, то исходный файл не изменять.