結果

問題 No.2517 Right Triangles on Circle
ユーザー MasKoaTSMasKoaTS
提出日時 2023-08-26 13:41:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 587 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 145,624 KB
最終ジャッジ日時 2024-12-25 12:34:19
合計ジャッジ時間 6,045 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

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