結果
| 問題 |
No.1447 Greedy MtSaka
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:03:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 82,848 KB |
| 実行使用メモリ | 53,804 KB |
| 最終ジャッジ日時 | 2025-03-20 21:03:34 |
| 合計ジャッジ時間 | 1,801 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
n = int(input())
points = [tuple(map(int, input().split())) for _ in range(n)]
total = 0
for i in range(n):
x, y = points[i]
next_x, next_y = points[(i + 1) % n]
total += x * next_y - next_x * y
print(abs(total))
lam6er