結果

問題 No.2517 Right Triangles on Circle
ユーザー MasKoaTSMasKoaTS
提出日時 2023-08-26 13:41:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 906 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 148,024 KB
最終ジャッジ日時 2023-08-26 14:48:35
合計ジャッジ時間 5,619 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,136 KB
testcase_01 AC 65 ms
70,984 KB
testcase_02 AC 63 ms
71,164 KB
testcase_03 AC 65 ms
70,980 KB
testcase_04 AC 63 ms
71,224 KB
testcase_05 AC 65 ms
71,136 KB
testcase_06 AC 66 ms
71,184 KB
testcase_07 AC 63 ms
70,764 KB
testcase_08 AC 62 ms
71,272 KB
testcase_09 AC 65 ms
71,140 KB
testcase_10 AC 63 ms
70,956 KB
testcase_11 AC 62 ms
71,084 KB
testcase_12 AC 63 ms
71,176 KB
testcase_13 AC 156 ms
140,584 KB
testcase_14 AC 143 ms
140,044 KB
testcase_15 AC 165 ms
148,024 KB
testcase_16 AC 168 ms
147,660 KB
testcase_17 AC 150 ms
125,616 KB
testcase_18 AC 141 ms
120,924 KB
testcase_19 AC 136 ms
123,636 KB
testcase_20 AC 136 ms
123,936 KB
testcase_21 AC 170 ms
142,084 KB
testcase_22 AC 90 ms
94,956 KB
testcase_23 AC 142 ms
121,504 KB
testcase_24 AC 99 ms
98,440 KB
testcase_25 AC 86 ms
90,576 KB
testcase_26 AC 163 ms
131,928 KB
testcase_27 AC 90 ms
92,656 KB
testcase_28 AC 81 ms
84,084 KB
testcase_29 AC 94 ms
98,092 KB
testcase_30 AC 92 ms
89,480 KB
testcase_31 AC 150 ms
123,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

n, m = map(int, input().split())
a = set(map(int, input().split()))

if(m & 1):
    exit(print(0))

ans = 0
for x in a:
    if(x + m // 2 not in a):
        continue
    ans += n - 2
print(ans)
0