結果
問題 |
No.55 正方形を描くだけの簡単なお仕事です。
|
ユーザー |
|
提出日時 | 2022-01-01 18:10:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 5,000 ms |
コード長 | 342 bytes |
コンパイル時間 | 543 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 54,056 KB |
最終ジャッジ日時 | 2024-10-10 09:19:32 |
合計ジャッジ時間 | 2,200 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 |
ソースコード
import itertools a,b,c,d,e,f = map(int,input().split()) XY = [[a,b],[c,d],[e,f]] for l in itertools.permutations(range(3),3): x1,y1 = XY[l[0]] x2,y2 = XY[l[1]] x3,y3 = XY[l[2]] dx,dy = x2-x1,y2-y1 if x1 - dy != x3 or y1+dx != y3: continue x4 = x3+dx y4 = y3+dy print(x4,y4) exit() print(-1)