結果

問題 No.55 正方形を描くだけの簡単なお仕事です。
ユーザー roiti46roiti46
提出日時 2015-02-12 00:24:43
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 172 ms / 5,000 ms
コード長 393 bytes
コンパイル時間 1,847 ms
コンパイル使用メモリ 76,800 KB
実行使用メモリ 78,720 KB
最終ジャッジ日時 2024-04-26 22:11:25
合計ジャッジ時間 6,600 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
78,208 KB
testcase_01 AC 166 ms
78,464 KB
testcase_02 AC 136 ms
78,080 KB
testcase_03 AC 139 ms
78,720 KB
testcase_04 AC 164 ms
78,080 KB
testcase_05 AC 169 ms
78,080 KB
testcase_06 AC 165 ms
78,336 KB
testcase_07 AC 168 ms
78,080 KB
testcase_08 AC 167 ms
78,080 KB
testcase_09 AC 166 ms
78,464 KB
testcase_10 AC 172 ms
78,208 KB
testcase_11 AC 126 ms
78,208 KB
testcase_12 AC 166 ms
78,080 KB
testcase_13 AC 151 ms
78,336 KB
testcase_14 AC 135 ms
78,080 KB
testcase_15 AC 167 ms
78,208 KB
testcase_16 AC 139 ms
78,080 KB
testcase_17 AC 164 ms
78,080 KB
testcase_18 AC 121 ms
78,080 KB
testcase_19 AC 169 ms
78,464 KB
testcase_20 AC 135 ms
78,336 KB
testcase_21 AC 134 ms
78,080 KB
testcase_22 AC 167 ms
78,208 KB
testcase_23 AC 148 ms
78,080 KB
testcase_24 AC 120 ms
78,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x0,y0,x1,y1,x2,y2 = map(int,raw_input().split())
flag = False
for x in range(-200,201):
    for y in range(-200,201):
        xy = [[x0,y0],[x1,y1],[x2,y2],[x,y]]
        d = [(xy[i][0]-xy[j][0])**2+(xy[i][1]-xy[j][1])**2 for i in range(4) for j in range(i+1,4)]
        if len(set(d)) == 2:
            print x,y
            flag = True
            break
    if flag: break
else:
    print -1
0