Approaching Hurricane

View as PDF

Submit solution

Points: 1.80
Time limit: 7.0s
Memory limit: 512M

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

3
3
0 0
0 3
4 0
5
0 0 4 0 0 4
0 0 1 0 3 1
0 0 2 4 0 2
1 1 1 5 5 5
-1 -1 1 3 3 3
5
0 0
1 1
2 2
2 0
2 -2
1
2 0 1 6 0 2
3
3 3
2 1
1 1
1
2 2 1 2 2 1

Sample Output 1

6.000000000000
2.625000000000
5.333333333333
5.785398163397
5.982317997582
1.576314961400
0.863647609001

Comments

Please read the guidelines before commenting.



  • 3
    vrski39  commented on Dec. 16, 2024, 11:45 a.m.

    mình đã khóc ;;;;;

    hint:

    shoelace formula CSES - Polygon Area

    còn lại thì vật lộn với việc cài đặt ;_;