Submit solution
Points:
0.50 (partial)
Time limit:
1.0s
Memory limit:
256M
Input:
stdin
Output:
stdout
Author:
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
Comments
Unofficial solution
a ơi cho e hỏi chút giả sử nếu nenso(x) = nenso(y) thi khi đó d[nen(x)] = d(nen(y)) mà ở trong ans của mình sẽ tính bằng (d[x] + 1) * (d[y] + 1) thì khi đấy ta được các tập con thỏa mãn có 2 số tích với nhau là số cp r mà nhỉ