Task: | Polygon area |
Sender: | laluj |
Submission time: | 2024-11-11 16:30:53 +0200 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | RUNTIME ERROR |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.02 s | details |
#2 | RUNTIME ERROR | 0.02 s | details |
#3 | RUNTIME ERROR | 0.02 s | details |
Code
import numpy as np def polygon_area(vertices): n = len(vertices) area = 0 for i in range(n): j = (i + 1) % n area += vertices[i][0] * vertices[j][1] - vertices[i][1] * vertices[j][0] return abs(area) n = int(input()) vertices = [tuple(map(int, input().split())) for _ in range(n)] print(polygon_area(vertices))
Test details
Test 1
Verdict: RUNTIME ERROR
input |
---|
100 -7 -19 91 77 100 100 64 60 ... |
correct output |
---|
43582 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 1, in <module> import numpy as np ModuleNotFoundError: No module named 'numpy'
Test 2
Verdict: RUNTIME ERROR
input |
---|
1000 365625896 -113418831 278762563 38777445 250367343 -96991975 175866909 -129766978 ... |
correct output |
---|
4053466653883387139 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 1, in <module> import numpy as np ModuleNotFoundError: No module named 'numpy'
Test 3
Verdict: RUNTIME ERROR
input |
---|
4 -1000000000 -1000000000 -1000000000 1000000000 1000000000 1000000000 1000000000 -1000000000 |
correct output |
---|
8000000000000000000 |
user output |
---|
(empty) |
Error:
Traceback (most recent call last): File "/box/input/code.py", line 1, in <module> import numpy as np ModuleNotFoundError: No module named 'numpy'