結果
問題 | No.2790 Athena 3 |
ユーザー | miho-4 |
提出日時 | 2024-06-21 21:35:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 82,604 KB |
実行使用メモリ | 53,688 KB |
最終ジャッジ日時 | 2024-06-21 21:35:19 |
合計ジャッジ時間 | 1,672 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 31 ms
53,216 KB |
testcase_01 | AC | 31 ms
52,400 KB |
testcase_02 | AC | 32 ms
53,032 KB |
testcase_03 | AC | 31 ms
51,820 KB |
testcase_04 | AC | 31 ms
52,816 KB |
testcase_05 | AC | 32 ms
53,196 KB |
testcase_06 | AC | 35 ms
52,920 KB |
testcase_07 | AC | 38 ms
52,940 KB |
testcase_08 | AC | 36 ms
52,620 KB |
testcase_09 | AC | 37 ms
52,476 KB |
testcase_10 | AC | 31 ms
52,760 KB |
testcase_11 | AC | 32 ms
52,316 KB |
testcase_12 | AC | 33 ms
52,752 KB |
testcase_13 | AC | 33 ms
52,400 KB |
testcase_14 | AC | 31 ms
51,880 KB |
testcase_15 | AC | 32 ms
52,864 KB |
testcase_16 | AC | 31 ms
53,688 KB |
ソースコード
x1,y1,x2,y2,x3,y3=map(int,input().split()) def f(x1,y1,x2,y2,x3,y3): S=abs(x1*y2 + x2*y3 + x3*y1 - y1*x2 - y2*x3 - y3*x1)/2 return S dxy=[(1,0),(-1,0),(0,1),(0,-1)] ans=0 for dx,dy in dxy: for dx2,dy2 in dxy: for dx3,dy3 in dxy: ans=max(ans,f(x1+dx,y1+dy,x2+dx2,y2+dy2,x3+dx3,y3+dy3)) print(ans)