結果

問題 No.199 星を描こう
ユーザー n_knuun_knuu
提出日時 2019-05-06 22:25:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 247 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 49,876 KB
最終ジャッジ日時 2023-09-10 21:48:30
合計ジャッジ時間 8,560 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 243 ms
49,632 KB
testcase_01 AC 242 ms
49,428 KB
testcase_02 AC 241 ms
49,728 KB
testcase_03 AC 240 ms
49,724 KB
testcase_04 AC 241 ms
49,512 KB
testcase_05 AC 244 ms
49,688 KB
testcase_06 AC 245 ms
49,712 KB
testcase_07 AC 247 ms
49,572 KB
testcase_08 AC 246 ms
49,656 KB
testcase_09 AC 244 ms
49,688 KB
testcase_10 AC 238 ms
49,604 KB
testcase_11 AC 242 ms
49,656 KB
testcase_12 AC 241 ms
49,640 KB
testcase_13 AC 240 ms
49,312 KB
testcase_14 AC 239 ms
49,700 KB
testcase_15 AC 243 ms
49,416 KB
testcase_16 AC 240 ms
49,560 KB
testcase_17 AC 239 ms
49,480 KB
testcase_18 AC 246 ms
49,788 KB
testcase_19 AC 241 ms
49,672 KB
testcase_20 AC 246 ms
49,724 KB
testcase_21 AC 243 ms
49,748 KB
testcase_22 AC 246 ms
49,680 KB
testcase_23 AC 243 ms
49,420 KB
testcase_24 AC 242 ms
49,524 KB
testcase_25 AC 241 ms
49,532 KB
testcase_26 AC 239 ms
49,552 KB
testcase_27 AC 241 ms
49,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
from scipy.spatial import ConvexHull
from scipy.spatial.qhull import QhullError

points = []
for _ in range(5):
    x, y = map(int, input().split())
    points.append([x, y])
points = np.asarray(points)
try:
    hull = ConvexHull(points)
except QhullError:
    print("NO")
    quit()

print("YES" if hull.nsimplex == 5 else "NO")
0