結果

問題 No.1447 Greedy MtSaka
ユーザー dangodango
提出日時 2023-06-25 12:18:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 1,094 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-07-02 12:53:11
合計ジャッジ時間 1,938 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
points = [list(map(int, input().split())) for _ in range(N)]
area = 0
for i in range(N):
    x1, y1 = points[i]
    x2, y2 = points[(i + 1) % N]
    area += (x1 * y2 - x2 * y1)
print(abs(area))
0