結果
問題 |
No.2517 Right Triangles on Circle
|
ユーザー |
![]() |
提出日時 | 2023-10-27 21:57:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 399 ms / 2,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 43,260 KB |
最終ジャッジ日時 | 2024-09-25 14:03:59 |
合計ジャッジ時間 | 6,333 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 |
ソースコード
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 M%2==0 and a+M//2 in S: ANS+=N-2 print(ANS)