結果

問題 No.1447 Greedy MtSaka
ユーザー googol_S0googol_S0
提出日時 2021-03-31 14:45:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 71,432 KB
最終ジャッジ日時 2023-08-21 11:12:11
合計ジャッジ時間 2,950 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,288 KB
testcase_01 AC 70 ms
71,432 KB
testcase_02 AC 69 ms
71,200 KB
testcase_03 AC 71 ms
71,208 KB
testcase_04 AC 71 ms
71,152 KB
testcase_05 AC 71 ms
71,212 KB
testcase_06 AC 70 ms
71,288 KB
testcase_07 AC 71 ms
71,212 KB
testcase_08 AC 72 ms
71,292 KB
testcase_09 AC 71 ms
71,252 KB
testcase_10 AC 70 ms
71,344 KB
testcase_11 AC 70 ms
71,280 KB
testcase_12 AC 70 ms
71,204 KB
testcase_13 AC 70 ms
71,348 KB
testcase_14 AC 71 ms
71,244 KB
testcase_15 AC 70 ms
71,036 KB
testcase_16 AC 69 ms
71,052 KB
testcase_17 AC 72 ms
71,320 KB
testcase_18 AC 71 ms
71,336 KB
testcase_19 AC 71 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
X=[tuple(map(int,input().split())) for i in range(N)]
X.append(X[0])
ANS=0
for i in range(N):
  ANS+=X[i][0]*X[i+1][1]-X[i+1][0]*X[i][1]
print(abs(ANS))
0