結果
| 問題 | No.723 2つの数の和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-19 20:56:01 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 151 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 101,760 KB |
| 最終ジャッジ日時 | 2026-05-13 07:00:23 |
| 合計ジャッジ時間 | 4,939 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 TLE * 1 -- * 11 |
ソースコード
N,X=map(int,input().split()) a=list(map(int,input().split())) from collections import Counter a=Counter(a) ans=0 for i in range(X+1): ans+=a[i]*a[X-i] print(ans)