結果

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

ソースコード

diff #

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

nlist = sorted([int(v) for v in input().split(" ")])


s = 0

for i in range(n):
    a = x-nlist[i]
    s += (nlist.count(a))
print(s)
0