結果

問題 No.2517 Right Triangles on Circle
ユーザー hiryuNhiryuN
提出日時 2023-10-27 22:09:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 81,880 KB
実行使用メモリ 167,944 KB
最終ジャッジ日時 2023-10-27 22:09:06
合計ジャッジ時間 4,444 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,276 KB
testcase_01 AC 39 ms
53,276 KB
testcase_02 AC 39 ms
53,276 KB
testcase_03 AC 39 ms
53,276 KB
testcase_04 AC 36 ms
53,276 KB
testcase_05 AC 37 ms
53,276 KB
testcase_06 AC 37 ms
53,276 KB
testcase_07 AC 37 ms
53,276 KB
testcase_08 AC 37 ms
53,276 KB
testcase_09 AC 39 ms
53,276 KB
testcase_10 AC 37 ms
53,276 KB
testcase_11 AC 37 ms
53,276 KB
testcase_12 AC 37 ms
53,276 KB
testcase_13 AC 169 ms
158,172 KB
testcase_14 AC 37 ms
53,276 KB
testcase_15 AC 187 ms
167,944 KB
testcase_16 AC 189 ms
167,668 KB
testcase_17 AC 153 ms
116,424 KB
testcase_18 AC 140 ms
111,200 KB
testcase_19 AC 137 ms
136,060 KB
testcase_20 AC 135 ms
137,472 KB
testcase_21 AC 188 ms
162,088 KB
testcase_22 AC 37 ms
53,276 KB
testcase_23 AC 144 ms
135,164 KB
testcase_24 AC 84 ms
99,508 KB
testcase_25 AC 37 ms
53,276 KB
testcase_26 AC 164 ms
146,352 KB
testcase_27 AC 37 ms
53,276 KB
testcase_28 AC 59 ms
76,360 KB
testcase_29 AC 80 ms
99,108 KB
testcase_30 AC 69 ms
85,124 KB
testcase_31 AC 149 ms
135,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
if m%2==1:
	print(0)
	exit()
ans=0
A=list(map(int,input().split()))
B=set(A)
for i in A:
	if i+m//2 in B or i-m//2 in B:
		ans+=n-2
print(ans//2)
0