結果
| 問題 | No.55 正方形を描くだけの簡単なお仕事です。 |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-11-06 03:05:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 369 bytes |
| 記録 | |
| コンパイル時間 | 1,402 ms |
| コンパイル使用メモリ | 81,836 KB |
| 実行使用メモリ | 65,024 KB |
| 最終ジャッジ日時 | 2024-07-19 19:15:12 |
| 合計ジャッジ時間 | 2,667 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 21 |
ソースコード
import sys,numpy as np,itertools input=lambda:sys.stdin.readline().rstrip() temp=list(map(int,input().split())) points=[np.array(temp[i:i+2]) for i in range(0,6,2)] n=lambda x:np.linalg.norm(x,ord=2) for i in itertools.permutations(points,3): if np.dot(i[0]-i[1],i[0]-i[2])!=0 or n(i[0]-i[1])!=n(i[0]-i[2]): continue print(*(i[1]+i[2]-i[0])) break else: print(-1)
ytft