結果

問題 No.723 2つの数の和
ユーザー H20
提出日時 2020-12-01 14:51:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 100,908 KB
最終ジャッジ日時 2024-09-13 02:59:35
合計ジャッジ時間 2,968 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N,X = map(int,input().split())
A = list(map(int,input().split()))
C =  collections.Counter(A)
cnt = 0
for i in range(N):
    if X-A[i]>=0:
        cnt += C[X-A[i]]

print(cnt)
0