結果

問題 No.723 2つの数の和
ユーザー buriburi
提出日時 2019-10-13 20:43:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 194 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 29,224 KB
最終ジャッジ日時 2024-12-17 13:47:07
合計ジャッジ時間 3,895 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 RE * 1
other AC * 6 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

d = {}
for x in range(10**5+1):
    d[x] = 0
N, X = [int(k) for k in input().split()]
b = [int(k) for k in input().split()]
for x in b:
    d[x] += 1
c = 0
for x in b:
    c += d[X - x]
print(c)
0