Довільний з індексів
Перегляд у форматі PDF
Надіслати розв'язок
Бали:
1,00 (partial)
Time limit:
0.3s
Memory limit:
256M
Input:
stdin
Output:
stdout
Suggester:
Problem type
Задача 5 зі списку https://dmoj.cdu.edu.ua/media/martor/RegEx.pdf
Очікується, що Ви не писатимете задачу «з нуля», а лише заміните regEx-и (регулярні вирази) в ось цьому майже-розв'язку
Вхід
Vertex $v_1$ is isolated ---
it's of degree 0.
Vertice $v_2$, $v_{7}$
and $v_{12}$ are terminal ---
each of them is of degree 1.
Note that $v_1u$ actually means
not $v_{1u}$ but ${v_1}u$,
so $v_1u$ should NOT be changed
to v[1u].
Результат
Vertex v[1] is isolated ---
it's of degree 0.
Vertice v[2], v[7]
and v[12] are terminal ---
each of them is of degree 1.
Note that $v_1u$ actually means
not v[1u] but ${v_1}u$,
so $v_1u$ should NOT be changed
to v[1u].
Коментарі