結果

問題 No.2517 Right Triangles on Circle
ユーザー titiatitia
提出日時 2023-10-27 21:56:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 665 ms
コンパイル使用メモリ 11,704 KB
実行使用メモリ 44,720 KB
最終ジャッジ日時 2023-10-27 21:56:30
合計ジャッジ時間 6,453 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,916 KB
testcase_01 WA -
testcase_02 AC 26 ms
9,916 KB
testcase_03 WA -
testcase_04 AC 26 ms
9,916 KB
testcase_05 AC 27 ms
9,920 KB
testcase_06 AC 28 ms
9,932 KB
testcase_07 AC 28 ms
9,984 KB
testcase_08 AC 28 ms
9,988 KB
testcase_09 AC 25 ms
9,928 KB
testcase_10 AC 26 ms
9,940 KB
testcase_11 AC 26 ms
9,920 KB
testcase_12 AC 25 ms
9,980 KB
testcase_13 AC 357 ms
44,596 KB
testcase_14 WA -
testcase_15 AC 372 ms
42,792 KB
testcase_16 AC 358 ms
42,792 KB
testcase_17 AC 284 ms
38,460 KB
testcase_18 AC 274 ms
36,732 KB
testcase_19 AC 239 ms
34,076 KB
testcase_20 AC 247 ms
33,824 KB
testcase_21 AC 347 ms
44,720 KB
testcase_22 WA -
testcase_23 AC 267 ms
33,440 KB
testcase_24 AC 120 ms
22,184 KB
testcase_25 WA -
testcase_26 AC 303 ms
38,316 KB
testcase_27 WA -
testcase_28 AC 64 ms
15,920 KB
testcase_29 AC 120 ms
22,680 KB
testcase_30 AC 77 ms
16,504 KB
testcase_31 AC 277 ms
35,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,M=map(int,input().split())
A=list(map(int,input().split()))

A.sort()
S=set(A)
ANS=0

for a in A:
    if a+M//2 in S:
        ANS+=N-2

print(ANS)
0