結果

問題 No.2517 Right Triangles on Circle
ユーザー hato336hato336
提出日時 2023-10-28 09:00:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 443 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 81,860 KB
実行使用メモリ 188,072 KB
最終ジャッジ日時 2023-10-28 09:00:44
合計ジャッジ時間 7,766 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
85,176 KB
testcase_01 AC 123 ms
85,172 KB
testcase_02 AC 128 ms
85,176 KB
testcase_03 AC 122 ms
85,176 KB
testcase_04 AC 127 ms
85,176 KB
testcase_05 AC 127 ms
85,172 KB
testcase_06 AC 124 ms
85,180 KB
testcase_07 AC 123 ms
85,176 KB
testcase_08 AC 123 ms
85,180 KB
testcase_09 AC 124 ms
85,176 KB
testcase_10 AC 123 ms
85,176 KB
testcase_11 AC 129 ms
85,176 KB
testcase_12 AC 123 ms
85,172 KB
testcase_13 AC 253 ms
187,340 KB
testcase_14 AC 123 ms
85,176 KB
testcase_15 AC 265 ms
179,436 KB
testcase_16 AC 279 ms
179,332 KB
testcase_17 AC 237 ms
167,328 KB
testcase_18 AC 219 ms
159,040 KB
testcase_19 AC 209 ms
151,024 KB
testcase_20 AC 221 ms
151,284 KB
testcase_21 AC 247 ms
188,072 KB
testcase_22 AC 123 ms
85,172 KB
testcase_23 AC 228 ms
159,328 KB
testcase_24 AC 168 ms
117,928 KB
testcase_25 AC 121 ms
85,180 KB
testcase_26 AC 239 ms
169,528 KB
testcase_27 AC 121 ms
85,172 KB
testcase_28 AC 148 ms
99,012 KB
testcase_29 AC 172 ms
117,656 KB
testcase_30 AC 161 ms
105,596 KB
testcase_31 AC 222 ms
159,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)


#alist = []
#s = input()
n,m = map(int,input().split())
if m %2:
    exit(print(0))
#for i in range(n):
#    alist.append(list(map(int,input().split())))
alist = list(map(int,input().split()))
s = set(alist)
ans = 0
for i in alist:
    if i + m//2 in s:
        ans += n-2
print(ans)
0