結果
| 問題 | No.2517 Right Triangles on Circle |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-10-11 13:33:13 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 163 ms / 2,000 ms |
| + 905µs | |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 95,724 KB |
| 実行使用メモリ | 182,656 KB |
| 最終ジャッジ日時 | 2026-07-15 16:28:32 |
| 合計ジャッジ時間 | 6,461 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
N,M = map(int,input().split())
if M % 2 == 1:
print(0)
exit()
M2 = M // 2
N2 = N - 2
A = list(map(int,input().split()))
S = set(A)
ans = 0
cnt = 0
for a in A:
if a + M2 in S:
cnt += 1
print(cnt * N2)
ntuda