結果
| 問題 | No.723 2つの数の和 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-08-03 23:11:31 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 284 bytes | 
| コンパイル時間 | 140 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 24,228 KB | 
| 最終ジャッジ日時 | 2024-09-19 17:38:45 | 
| 合計ジャッジ時間 | 3,700 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | TLE * 1 -- * 21 | 
ソースコード
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write
def main():
    N, X = map(int, input().split())
    A = tuple(map(int, input().split()))
    ans = 0
    for ai in A:
        aj = X - ai
        ans += A.count(aj)
    print(ans)
main()
            
            
            
        