U505208 Luxuriant Flower
题目背景
[Chinese statement](https://www.luogu.com.cn/problem/P11243). **You must submit your code at the Chinese version of the statement.**
I've already known. Known at the time when I set up the loop playback. That, I was numbing myself and avoiding the problem.
I admitted it, but when picking up those details that sank underwater, I suddenly resonated with all those real heartbeats in an instant.
Then I always thought too little while now I often think too much, at a loss like green algae spreading in a deserted pond.
In the world were too many emotions; nevertheless, Iris could only tell happier or sadder.
题目描述
Iris wants to look into the question. She wants to do some statistics first; therefore, she abstracts the following problem.
Iris has $n$ unknowns $a_1\dots a_n$. For each $1 \leq i < n$, she has compared $a_i$ and $a_{i+1}$ and written a character $c_i \in \{\texttt{>}, \texttt{$, then $a_i > a_{i+1}$;
- If $c_i = \texttt
输入格式
无
输出格式
无
说明/提示
- In the first sample test case, one can see that $a_i$ is happier than $a_j$ if and only if $1 \leq i < j \leq n$, so there are a total of $\frac{5\times 4}{2} = 10$ pairs $(i, j)$.
- In the second sample test case, the $9$ pairs are listed as follows: $(1, 2), (1, 3), (4, 2), (4, 3), (4, 5), (4, 6), (4, 7), (5, 7), (6, 7)$.
- For the rest of the test cases, clever readers can verify that for themselves.