結果
問題 |
No.723 2つの数の和
|
ユーザー |
![]() |
提出日時 | 2020-06-04 02:39:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 134 ms / 2,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 25,340 KB |
最終ジャッジ日時 | 2024-11-27 06:27:03 |
合計ジャッジ時間 | 3,715 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
m,x=map(int,input().split()) a=[int(j)for j in input().split()] import collections c=collections.Counter(a) ans=0 for i in a: ans+=c[x-i] print(ans)