結果

問題 No.723 2つの数の和
ユーザー Konton7
提出日時 2019-05-02 22:36:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 41,532 KB
最終ジャッジ日時 2024-12-31 13:47:06
合計ジャッジ時間 50,978 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 3 WA * 3 TLE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = [int(v) for v in input().split(" ")]

nlist = sorted([int(v) for v in input().split(" ")])
xlist = sorted([x-nlist[i] for i in range(n)])

s = 0

for i in range(n):
    if nlist[i] in xlist:
        s += 1
print(s)
0