結果

問題 No.2517 Right Triangles on Circle
コンテスト
ユーザー MasKoaTS
提出日時 2023-08-26 13:41:29
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 233 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 152 ms
コンパイル使用メモリ 85,888 KB
実行使用メモリ 153,600 KB
最終ジャッジ日時 2026-05-31 04:21:52
合計ジャッジ時間 4,605 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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