結果
| 問題 |
No.1447 Greedy MtSaka
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-09-11 04:53:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 208 bytes |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 82,272 KB |
| 実行使用メモリ | 53,880 KB |
| 最終ジャッジ日時 | 2024-09-11 04:53:31 |
| 合計ジャッジ時間 | 2,055 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
n=int(input()) p=[] for i in range(n): x,y=map(int,input().split()) p+=[(x,y+10000)] g=0 for i in range(n): sx,sy=p[i-1] tx,ty=p[i] if sx>tx: g+=(sy+ty)*(sx-tx) if tx>sx: g-=(ty+sy)*(tx-sx) print(g)
sasa8uyauya