結果

問題 No.2790 Athena 3
ユーザー KudeKude
提出日時 2024-06-21 21:31:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 460 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 53,620 KB
最終ジャッジ日時 2024-06-21 21:31:41
合計ジャッジ時間 1,719 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,296 KB
testcase_01 AC 37 ms
53,172 KB
testcase_02 AC 37 ms
53,232 KB
testcase_03 AC 37 ms
53,116 KB
testcase_04 AC 38 ms
52,340 KB
testcase_05 AC 38 ms
52,652 KB
testcase_06 AC 42 ms
53,576 KB
testcase_07 AC 38 ms
52,744 KB
testcase_08 AC 37 ms
52,336 KB
testcase_09 AC 37 ms
53,620 KB
testcase_10 AC 38 ms
52,612 KB
testcase_11 AC 37 ms
53,176 KB
testcase_12 AC 38 ms
52,876 KB
testcase_13 AC 38 ms
52,876 KB
testcase_14 AC 38 ms
52,408 KB
testcase_15 AC 38 ms
52,520 KB
testcase_16 AC 37 ms
52,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x1, y1, x2, y2, x3, y3 = map(int, input().split())

ans = 0
for nx1, ny1 in ((x1 + 1, y1), (x1 - 1, y1), (x1, y1 + 1), (x1, y1 - 1)):
    for nx2, ny2 in ((x2 + 1, y2), (x2 - 1, y2), (x2, y2 + 1), (x2, y2 - 1)):
        for nx3, ny3 in ((x3 + 1, y3), (x3 - 1, y3), (x3, y3 + 1), (x3, y3 - 1)):
            dx1, dy1 = nx2 - nx1, ny2 - ny1
            dx2, dy2 = nx3 - nx1, ny3 - ny1
            ans = max(ans, abs(dx1 * dy2 - dy1 * dx2))
print(f'{ans / 2:.1f}')
0