結果

問題 No.2517 Right Triangles on Circle
ユーザー ニックネームニックネーム
提出日時 2023-10-27 21:40:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 277 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 11,740 KB
実行使用メモリ 52,656 KB
最終ジャッジ日時 2023-10-27 21:40:36
合計ジャッジ時間 5,092 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,040 KB
testcase_01 AC 25 ms
10,040 KB
testcase_02 AC 26 ms
10,040 KB
testcase_03 AC 26 ms
10,040 KB
testcase_04 AC 24 ms
10,040 KB
testcase_05 AC 24 ms
10,044 KB
testcase_06 AC 23 ms
10,052 KB
testcase_07 AC 25 ms
10,044 KB
testcase_08 AC 25 ms
10,044 KB
testcase_09 AC 25 ms
10,044 KB
testcase_10 AC 24 ms
10,060 KB
testcase_11 AC 25 ms
10,044 KB
testcase_12 AC 25 ms
10,040 KB
testcase_13 AC 277 ms
52,544 KB
testcase_14 AC 179 ms
52,544 KB
testcase_15 AC 245 ms
51,256 KB
testcase_16 AC 270 ms
51,252 KB
testcase_17 AC 204 ms
46,312 KB
testcase_18 AC 217 ms
45,144 KB
testcase_19 AC 199 ms
42,212 KB
testcase_20 AC 170 ms
42,392 KB
testcase_21 AC 236 ms
52,656 KB
testcase_22 AC 70 ms
24,952 KB
testcase_23 AC 183 ms
43,124 KB
testcase_24 AC 95 ms
26,316 KB
testcase_25 AC 60 ms
19,640 KB
testcase_26 AC 223 ms
49,424 KB
testcase_27 AC 60 ms
20,428 KB
testcase_28 AC 53 ms
16,380 KB
testcase_29 AC 93 ms
25,992 KB
testcase_30 AC 63 ms
18,604 KB
testcase_31 AC 190 ms
44,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
a = set(map(int,input().split()))
x = 0
for v in a:
    if m%2==0 and v<=m//2 and v+m//2 in a: x += n-2
print(x)
0