結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,023 ms
61,348 KB
testcase_01 AC 1,014 ms
61,224 KB
testcase_02 AC 1,017 ms
61,476 KB
testcase_03 AC 1,027 ms
61,476 KB
testcase_04 AC 1,005 ms
61,476 KB
testcase_05 AC 997 ms
60,960 KB
testcase_06 AC 1,006 ms
60,956 KB
testcase_07 AC 1,023 ms
61,220 KB
testcase_08 AC 1,049 ms
60,964 KB
testcase_09 AC 1,057 ms
61,000 KB
testcase_10 AC 1,070 ms
60,960 KB
testcase_11 AC 1,025 ms
60,968 KB
testcase_12 AC 1,012 ms
61,212 KB
testcase_13 AC 998 ms
60,960 KB
testcase_14 AC 1,014 ms
61,344 KB
testcase_15 AC 1,028 ms
61,092 KB
testcase_16 AC 1,016 ms
60,960 KB
testcase_17 AC 1,007 ms
60,968 KB
testcase_18 AC 1,038 ms
60,964 KB
testcase_19 AC 1,056 ms
61,492 KB
testcase_20 AC 1,029 ms
61,348 KB
testcase_21 AC 999 ms
61,344 KB
testcase_22 AC 1,013 ms
62,112 KB
testcase_23 AC 990 ms
61,480 KB
testcase_24 AC 996 ms
60,964 KB
testcase_25 AC 983 ms
60,960 KB
testcase_26 AC 988 ms
61,220 KB
testcase_27 AC 1,011 ms
60,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.spatial import ConvexHull, qhull

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