結果
| 問題 | No.2790 Athena 3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-21 22:31:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| + 147µs | |
| コード長 | 486 bytes |
| 記録 | |
| コンパイル時間 | 926 ms |
| コンパイル使用メモリ | 95,600 KB |
| 実行使用メモリ | 78,592 KB |
| 最終ジャッジ日時 | 2026-07-26 15:05:41 |
| 合計ジャッジ時間 | 2,675 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
t=list(map(int,input().split()))
def calc(t):
t[2]-=t[0]
t[4]-=t[0]
t[3]-=t[1]
t[5]-=t[1]
t[0]=0
t[1]=0
return abs(t[2]*t[5]-t[3]*t[4])/2
ans=0
di=[1,0,-1,0]
dj=[0,1,0,-1]
for i in range(4):
for j in range(4):
for k in range(4):
nt=t[:]
nt[0]+=di[i]
nt[1]+=dj[i]
nt[2]+=di[j]
nt[3]+=dj[j]
nt[4]+=di[k]
nt[5]+=dj[k]
ans=max(ans,calc(nt))
print(ans)