ICPC 2022 vòng Regional - E: Emotional Damage

View as PDF

Submit solution

Points: 1.00
Time limit: 2.0s
Memory limit: 512M
Input: stdin
Output: stdout

Problem source:
ICPC 2022 vòng Regional
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

Sample Input 1

4
0 0
1 0
1 1
0 1

Sample Output 1

0.25
0.25
0.25
0.25

Sample Input 2

4
0 0
10 0
9 1
1 1

Sample Output 2

0.46944215849887844
0
0.5305578415011215
0

Comments

Please read the guidelines before commenting.


There are no comments at the moment.