結果

問題 No.2517 Right Triangles on Circle
ユーザー sasa8uyauyasasa8uyauya
提出日時 2023-10-27 21:30:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 214 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 81,864 KB
実行使用メモリ 168,716 KB
最終ジャッジ日時 2023-10-27 21:30:52
合計ジャッジ時間 4,702 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,548 KB
testcase_01 AC 38 ms
53,548 KB
testcase_02 AC 37 ms
53,548 KB
testcase_03 AC 40 ms
53,548 KB
testcase_04 AC 37 ms
53,548 KB
testcase_05 AC 37 ms
53,548 KB
testcase_06 AC 37 ms
53,548 KB
testcase_07 AC 38 ms
53,548 KB
testcase_08 AC 37 ms
53,548 KB
testcase_09 AC 37 ms
53,548 KB
testcase_10 AC 37 ms
53,548 KB
testcase_11 AC 37 ms
53,548 KB
testcase_12 AC 37 ms
53,548 KB
testcase_13 AC 209 ms
158,864 KB
testcase_14 AC 174 ms
158,828 KB
testcase_15 AC 214 ms
168,716 KB
testcase_16 AC 188 ms
168,640 KB
testcase_17 AC 157 ms
117,256 KB
testcase_18 AC 143 ms
112,992 KB
testcase_19 AC 132 ms
136,704 KB
testcase_20 AC 142 ms
138,208 KB
testcase_21 AC 192 ms
163,112 KB
testcase_22 AC 82 ms
96,140 KB
testcase_23 AC 153 ms
135,888 KB
testcase_24 AC 88 ms
99,976 KB
testcase_25 AC 71 ms
88,200 KB
testcase_26 AC 168 ms
147,060 KB
testcase_27 AC 76 ms
93,156 KB
testcase_28 AC 61 ms
76,840 KB
testcase_29 AC 86 ms
99,644 KB
testcase_30 AC 69 ms
85,656 KB
testcase_31 AC 155 ms
136,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
d={}
for a in list(map(int,input().split())):
  d[a-1]=1
c=0
for v in d:
  if (v+m//2)%m in d:
    c+=n-2
print((c*(m%2==0))//2)
0