結果

問題 No.2517 Right Triangles on Circle
ユーザー hiryuNhiryuN
提出日時 2023-10-27 22:07:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 81,780 KB
実行使用メモリ 167,904 KB
最終ジャッジ日時 2023-10-27 22:08:09
合計ジャッジ時間 4,171 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,524 KB
testcase_01 WA -
testcase_02 AC 34 ms
53,524 KB
testcase_03 WA -
testcase_04 AC 31 ms
53,524 KB
testcase_05 AC 34 ms
53,524 KB
testcase_06 AC 32 ms
53,524 KB
testcase_07 AC 32 ms
53,524 KB
testcase_08 AC 32 ms
53,524 KB
testcase_09 AC 30 ms
53,524 KB
testcase_10 AC 30 ms
53,524 KB
testcase_11 AC 30 ms
53,524 KB
testcase_12 AC 30 ms
53,524 KB
testcase_13 AC 150 ms
158,404 KB
testcase_14 WA -
testcase_15 AC 168 ms
167,852 KB
testcase_16 AC 174 ms
167,904 KB
testcase_17 AC 135 ms
116,704 KB
testcase_18 AC 122 ms
111,436 KB
testcase_19 AC 112 ms
136,268 KB
testcase_20 AC 119 ms
137,708 KB
testcase_21 AC 165 ms
162,340 KB
testcase_22 WA -
testcase_23 AC 137 ms
135,400 KB
testcase_24 AC 75 ms
99,744 KB
testcase_25 WA -
testcase_26 AC 144 ms
146,584 KB
testcase_27 WA -
testcase_28 AC 51 ms
76,596 KB
testcase_29 AC 72 ms
99,344 KB
testcase_30 AC 58 ms
85,360 KB
testcase_31 AC 132 ms
135,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
if m%2==1:
	print(0)
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