結果

問題 No.199 星を描こう
ユーザー H3PO4H3PO4
提出日時 2020-05-26 14:42:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,358 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 61,372 KB
最終ジャッジ日時 2024-04-21 04:18:10
合計ジャッジ時間 6,555 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,279 ms
61,244 KB
testcase_01 AC 1,291 ms
61,268 KB
testcase_02 AC 1,306 ms
60,356 KB
testcase_03 AC 1,256 ms
61,320 KB
testcase_04 AC 1,260 ms
60,608 KB
testcase_05 AC 1,275 ms
60,348 KB
testcase_06 AC 1,289 ms
60,092 KB
testcase_07 AC 1,286 ms
60,608 KB
testcase_08 AC 1,329 ms
60,088 KB
testcase_09 AC 1,310 ms
60,596 KB
testcase_10 AC 1,284 ms
60,348 KB
testcase_11 AC 1,295 ms
60,604 KB
testcase_12 AC 1,300 ms
61,244 KB
testcase_13 AC 1,312 ms
60,484 KB
testcase_14 AC 1,299 ms
60,732 KB
testcase_15 AC 1,331 ms
60,348 KB
testcase_16 AC 1,358 ms
61,236 KB
testcase_17 AC 1,315 ms
60,604 KB
testcase_18 AC 1,280 ms
60,468 KB
testcase_19 AC 1,291 ms
60,596 KB
testcase_20 AC 1,268 ms
60,096 KB
testcase_21 AC 1,318 ms
60,604 KB
testcase_22 AC 1,310 ms
60,604 KB
testcase_23 AC 1,335 ms
60,608 KB
testcase_24 AC 1,286 ms
60,440 KB
testcase_25 AC 1,289 ms
61,372 KB
testcase_26 AC 1,272 ms
60,464 KB
testcase_27 AC 1,300 ms
60,092 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