結果

問題 No.2790 Athena 3
ユーザー ButterflvButterflv
提出日時 2024-06-21 21:28:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,424 KB
実行使用メモリ 54,040 KB
最終ジャッジ日時 2024-06-21 21:28:07
合計ジャッジ時間 1,938 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,200 KB
testcase_01 AC 41 ms
52,596 KB
testcase_02 AC 37 ms
53,316 KB
testcase_03 AC 37 ms
52,460 KB
testcase_04 AC 40 ms
52,884 KB
testcase_05 AC 37 ms
52,408 KB
testcase_06 AC 39 ms
53,340 KB
testcase_07 AC 40 ms
53,624 KB
testcase_08 AC 37 ms
52,824 KB
testcase_09 AC 37 ms
52,824 KB
testcase_10 AC 37 ms
52,868 KB
testcase_11 AC 37 ms
52,820 KB
testcase_12 AC 37 ms
51,884 KB
testcase_13 AC 37 ms
53,072 KB
testcase_14 AC 37 ms
52,000 KB
testcase_15 AC 37 ms
53,416 KB
testcase_16 AC 37 ms
54,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def tria(x1,y1,x2,y2,x3,y3):
  nx1 = x2-x1
  ny1 = y2-y1
  nx2 = x3-x1
  ny2 = y3-y1
  return abs(nx1*ny2-nx2*ny1)

a,b,c,d,e,f = map(int,input().split())

DD=((0,1),(1,0),(0,-1),(-1,0))

MAX=[]

for da,db in DD:
  for dc,dd in DD:
    for de,df in DD:
      que=(a+da,b+db,c+dc,d+dd,e+de,f+df)
      MAX.append(tria(*que))

print(max(MAX)/2)
0