The admin has created a simple HTML editor to simplify writing the conditions of the problem. In this editor, the text is entered using special characters.
The set of operators is limited:
Your task is to implement the capabilities of the editor, or more precisely, to write an algorithm that converts the source text into HTML markup.
An unspecified number of lines contains the original text. The total length of the text does not exceed 1000 .
Output text converted to HTML.
* kep
<ul><li>kep</li></ul>
* kep1 * kep2
<ul><li>kep1</li><li>kep2</li></ul>
* kep1 * kep2
<ul><li>kep1</li></ul><ul><li>kep2</li></ul>
kep
<p>kep</p>
= head text ((https://kep.uz link)) text. * kep1 * kep2
<h1>head</h1> <p>text <a href="https://kep.uz">link</a> text.</p> <ul><li>kep1</li><li>kep2</li></ul>
Login to be able to submit.
Problem | ||
---|---|---|
A | KEPPEK | 65 |
B1 | Orifhon and Notcoin trading #1 | 60 |
B2 | Orifkhon and Notcoin trading #2 | 20 |
C | HTML editor | 3 |
D | Make equal | 36 |
E1 | Changes #1 | 36 |
E2 | Changes #2 | 18 |
F | Me first | 14 |
G | P-power divisor | 3 |
H | Secret message | 2 |
I | Hypermarket | 0 |
J | Arena results #2 | 2 |