Submit solution
Points:
1.00 (partial)
Time limit:
0.5s
Memory limit:
512M
Input:
drawatree.inp
Output:
drawatree.out
Author:
Problem source:
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Input
Output
Sample Input 1
4
YNY
YY
N
Sample Output 1
3
Comments
đếm số cách chọn ra n - 1 cặp điểm để nối n - 1 cạnh 💀