結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-19 20:56:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 168 bytes |
| コンパイル時間 | 201 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 174,976 KB |
| 最終ジャッジ日時 | 2024-11-18 20:17:31 |
| 合計ジャッジ時間 | 16,402 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 TLE * 4 |
ソースコード
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)