結果

問題 No.199 星を描こう
ユーザー n_knuun_knuu
提出日時 2019-05-06 22:21:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 250 bytes
コンパイル時間 1,184 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 87,584 KB
最終ジャッジ日時 2023-09-10 21:43:50
合計ジャッジ時間 13,473 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,383 ms
49,740 KB
testcase_01 AC 233 ms
49,700 KB
testcase_02 AC 231 ms
49,668 KB
testcase_03 AC 231 ms
49,748 KB
testcase_04 AC 232 ms
49,624 KB
testcase_05 AC 234 ms
49,748 KB
testcase_06 AC 230 ms
49,496 KB
testcase_07 AC 229 ms
49,732 KB
testcase_08 AC 231 ms
49,612 KB
testcase_09 AC 229 ms
49,544 KB
testcase_10 AC 229 ms
49,740 KB
testcase_11 AC 229 ms
49,580 KB
testcase_12 AC 230 ms
49,564 KB
testcase_13 AC 231 ms
49,400 KB
testcase_14 AC 230 ms
49,696 KB
testcase_15 AC 230 ms
49,736 KB
testcase_16 RE -
testcase_17 AC 230 ms
49,500 KB
testcase_18 AC 244 ms
49,648 KB
testcase_19 AC 244 ms
49,616 KB
testcase_20 AC 245 ms
49,516 KB
testcase_21 AC 234 ms
49,704 KB
testcase_22 AC 233 ms
49,444 KB
testcase_23 AC 232 ms
49,684 KB
testcase_24 AC 232 ms
49,644 KB
testcase_25 AC 235 ms
49,536 KB
testcase_26 AC 234 ms
49,660 KB
testcase_27 AC 235 ms
87,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
from scipy.spatial import ConvexHull

points = []
for _ in range(5):
    x, y = map(int, input().split())
    points.append([x, y])
points = np.asarray(points)
hull = ConvexHull(points)
print("YES" if hull.nsimplex == 5 else "NO")
0