結果

問題 No.2517 Right Triangles on Circle
ユーザー vwxyzvwxyz
提出日時 2023-12-08 03:57:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 292 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 52,704 KB
最終ジャッジ日時 2023-12-08 03:57:41
合計ジャッジ時間 7,039 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,856 KB
testcase_01 AC 28 ms
9,856 KB
testcase_02 AC 31 ms
9,856 KB
testcase_03 AC 31 ms
9,856 KB
testcase_04 AC 27 ms
9,856 KB
testcase_05 AC 27 ms
9,856 KB
testcase_06 AC 27 ms
9,856 KB
testcase_07 AC 28 ms
9,856 KB
testcase_08 AC 28 ms
9,856 KB
testcase_09 AC 28 ms
9,856 KB
testcase_10 AC 28 ms
9,856 KB
testcase_11 AC 28 ms
9,856 KB
testcase_12 AC 27 ms
9,856 KB
testcase_13 AC 277 ms
50,544 KB
testcase_14 AC 193 ms
50,544 KB
testcase_15 AC 270 ms
51,304 KB
testcase_16 AC 292 ms
51,304 KB
testcase_17 AC 222 ms
45,156 KB
testcase_18 AC 229 ms
44,004 KB
testcase_19 AC 191 ms
42,124 KB
testcase_20 AC 196 ms
42,364 KB
testcase_21 AC 267 ms
52,704 KB
testcase_22 AC 76 ms
24,932 KB
testcase_23 AC 202 ms
43,068 KB
testcase_24 AC 108 ms
26,360 KB
testcase_25 AC 66 ms
19,672 KB
testcase_26 AC 227 ms
48,040 KB
testcase_27 AC 68 ms
20,448 KB
testcase_28 AC 59 ms
16,416 KB
testcase_29 AC 101 ms
26,004 KB
testcase_30 AC 73 ms
18,520 KB
testcase_31 AC 227 ms
44,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

N,M=map(int,readline().split())
A=set(map(int,readline().split()))
ans=0
for a in A:
    if M%2==0 and a<=M//2 and a+M//2 in A:
        ans+=N-2
print(ans)
0