結果
問題 |
No.723 2つの数の和
|
ユーザー |
![]() |
提出日時 | 2019-10-13 20:57:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,852 KB |
最終ジャッジ日時 | 2024-12-17 14:35:09 |
合計ジャッジ時間 | 2,354 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 22 |
ソースコード
N, X = [int(k) for k in input().split()] a = [int(k) for k in input().split()] d = {} for x in a: if not x in a: d[x] = 1 else: d[x] += 1 c = 0 for x in d: if X - x in d: c += d[X - x] * d[x] print(c)