結果

問題 No.2790 Athena 3
ユーザー PNJPNJ
提出日時 2024-06-21 21:25:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 53,816 KB
最終ジャッジ日時 2024-06-21 21:25:05
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,948 KB
testcase_01 AC 32 ms
52,248 KB
testcase_02 AC 33 ms
52,992 KB
testcase_03 AC 33 ms
53,488 KB
testcase_04 AC 33 ms
53,216 KB
testcase_05 AC 33 ms
52,400 KB
testcase_06 AC 34 ms
52,804 KB
testcase_07 AC 33 ms
53,540 KB
testcase_08 AC 33 ms
53,224 KB
testcase_09 AC 34 ms
52,572 KB
testcase_10 AC 33 ms
53,284 KB
testcase_11 AC 33 ms
53,816 KB
testcase_12 AC 34 ms
53,120 KB
testcase_13 AC 33 ms
52,404 KB
testcase_14 AC 33 ms
52,092 KB
testcase_15 AC 33 ms
52,936 KB
testcase_16 AC 33 ms
53,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x,y,xx,yy,xxx,yyy = map(int,input().split())
ans = 0
D = [(-1,0),(1,0),(0,-1),(0,1)]

for dx,dy in D:
  for dxx,dyy in D:
    for dxxx,dyyy in D:
      X,Y = x + dx,y + dy
      XX,YY = xx + dxx,yy + dyy
      XXX,YYY = xxx + dxxx,yyy + dyyy
      p,q,r,s = XX - X,YY - Y,XXX - X,YYY - Y
      ans = max(ans,abs(p*s - q*r))
print(ans / 2)
0