結果

問題 No.199 星を描こう
ユーザー H3PO4H3PO4
提出日時 2020-05-26 14:42:42
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 257 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 49,820 KB
最終ジャッジ日時 2023-08-03 04:55:15
合計ジャッジ時間 8,566 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 251 ms
49,776 KB
testcase_01 AC 247 ms
49,648 KB
testcase_02 AC 250 ms
49,740 KB
testcase_03 AC 254 ms
49,756 KB
testcase_04 AC 252 ms
49,632 KB
testcase_05 AC 253 ms
49,724 KB
testcase_06 AC 249 ms
49,680 KB
testcase_07 AC 250 ms
49,676 KB
testcase_08 AC 257 ms
49,792 KB
testcase_09 AC 249 ms
49,648 KB
testcase_10 AC 252 ms
49,660 KB
testcase_11 AC 249 ms
49,688 KB
testcase_12 AC 249 ms
49,580 KB
testcase_13 AC 254 ms
49,508 KB
testcase_14 AC 252 ms
49,616 KB
testcase_15 AC 255 ms
49,728 KB
testcase_16 AC 255 ms
49,520 KB
testcase_17 AC 254 ms
49,716 KB
testcase_18 AC 255 ms
49,732 KB
testcase_19 AC 253 ms
49,628 KB
testcase_20 AC 251 ms
49,756 KB
testcase_21 AC 250 ms
49,812 KB
testcase_22 AC 254 ms
49,716 KB
testcase_23 AC 251 ms
49,752 KB
testcase_24 AC 252 ms
49,820 KB
testcase_25 AC 245 ms
49,792 KB
testcase_26 AC 248 ms
49,636 KB
testcase_27 AC 244 ms
49,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.spatial import ConvexHull, qhull

P = [tuple(map(int, input().split())) for _ in range(5)]
try:
	x = ConvexHull(P,qhull_options='QR0').simplices
	print('YES' if len(x) == 5 else 'NO')
except qhull.QhullError:
  	print('NO')
0