結果

問題 No.723 2つの数の和
ユーザー pluto77
提出日時 2018-08-05 11:54:52
言語 Python2
(2.7.18)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 20,324 KB
最終ジャッジ日時 2024-09-19 18:02:28
合計ジャッジ時間 2,986 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki723
import collections

n,x=map(int,raw_input().split())
a=map(int,raw_input().split())
c=collections.Counter(a)
cnt=0
for b in a:
 cnt+=c[x-b]
print cnt
0