結果

問題 No.723 2つの数の和
ユーザー 1235486527
提出日時 2019-12-27 21:15:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,216 KB
最終ジャッジ日時 2024-10-09 11:01:43
合計ジャッジ時間 2,988 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

_, X = map(int, input().split())
C = collections.Counter(map(int, input().split()))
s = 0
for c in C:
    s += C[X-c] * C[c]
print(s)
0