Hide
Problem E
Ethanol
Languages
da
en
is
Input
One line with an integer $c\in \{ 1,\ldots , 10\} $, the number of carbon atoms.
Output
A drawing of the chemical compound in the style of the samples. The hydroxyl group is at the rightmost carbon atom.
Sample Input 1 | Sample Output 1 |
---|---|
1 |
H | H-C-OH | H |
Sample Input 2 | Sample Output 2 |
---|---|
2 |
H H | | H-C-C-OH | | H H |