結果

問題 No.2517 Right Triangles on Circle
ユーザー ntudantuda
提出日時 2023-10-28 10:58:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 81,856 KB
実行使用メモリ 168,736 KB
最終ジャッジ日時 2023-10-28 10:59:04
合計ジャッジ時間 4,768 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,592 KB
testcase_01 AC 37 ms
53,592 KB
testcase_02 AC 37 ms
53,592 KB
testcase_03 AC 36 ms
53,592 KB
testcase_04 AC 35 ms
53,592 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 172 ms
158,480 KB
testcase_14 AC 106 ms
109,832 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 58 ms
78,488 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 54 ms
75,452 KB
testcase_26 WA -
testcase_27 AC 53 ms
76,936 KB
testcase_28 AC 54 ms
76,524 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, input().split())
A = list(map(int, input().split()))
if M & 1:
    print(0)
    exit()
SA = set(A)
cnt = 0
for i in range(N):
    if A[i] * 2 in SA:
        cnt += 1
    i += 1
print(cnt * (N - 2))
0