結果

問題 No.2517 Right Triangles on Circle
ユーザー 👑 KA37RIKA37RI
提出日時 2023-10-27 23:01:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 294 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 46,460 KB
最終ジャッジ日時 2023-10-27 23:01:26
合計ジャッジ時間 5,721 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 29 ms
9,984 KB
testcase_02 AC 29 ms
9,984 KB
testcase_03 AC 29 ms
9,984 KB
testcase_04 AC 29 ms
9,984 KB
testcase_05 AC 29 ms
9,988 KB
testcase_06 AC 29 ms
9,992 KB
testcase_07 AC 29 ms
9,988 KB
testcase_08 AC 29 ms
9,992 KB
testcase_09 AC 29 ms
9,988 KB
testcase_10 AC 29 ms
10,000 KB
testcase_11 AC 29 ms
9,988 KB
testcase_12 AC 29 ms
9,984 KB
testcase_13 AC 272 ms
46,460 KB
testcase_14 AC 159 ms
46,460 KB
testcase_15 AC 276 ms
42,740 KB
testcase_16 AC 281 ms
42,740 KB
testcase_17 AC 227 ms
38,540 KB
testcase_18 AC 220 ms
36,880 KB
testcase_19 AC 197 ms
33,088 KB
testcase_20 AC 193 ms
35,344 KB
testcase_21 AC 294 ms
44,788 KB
testcase_22 AC 70 ms
21,908 KB
testcase_23 AC 205 ms
33,648 KB
testcase_24 AC 104 ms
22,200 KB
testcase_25 AC 62 ms
17,868 KB
testcase_26 AC 232 ms
38,020 KB
testcase_27 AC 64 ms
18,264 KB
testcase_28 AC 60 ms
15,992 KB
testcase_29 AC 104 ms
22,692 KB
testcase_30 AC 69 ms
16,676 KB
testcase_31 AC 206 ms
36,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
a = set(a)
if m % 2 == 1:
	print(0)
	exit()
ans = 0
for ai in a:
	if ai - m // 2 in a:
		ans += 1
print(ans * (n - 2))
0