PVHOI 5 bài 4 - Vẽ cây trên vòng tròn (70 điểm)

View as PDF

Submit solution


Points: 1.00 (partial)
Time limit: 0.5s
Memory limit: 512M
Input: drawatree.inp
Output: drawatree.out

Author:
Problem source:
PVHOI 5
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

Please read the guidelines before commenting.



  • 2
    ithero  commented on Dec. 23, 2024, 2:57 p.m.

    đếm số cách chọn ra n - 1 cặp điểm để nối n - 1 cạnh 💀