結果

問題 No.2517 Right Triangles on Circle
ユーザー vwxyz
提出日時 2023-12-08 03:57:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 365 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 51,936 KB
最終ジャッジ日時 2024-09-27 02:38:08
合計ジャッジ時間 6,478 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

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