結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
sekihankamibanz
|
| 提出日時 | 2018-10-28 16:21:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 229 bytes |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 34,608 KB |
| 最終ジャッジ日時 | 2024-11-19 07:07:06 |
| 合計ジャッジ時間 | 56,499 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 4 TLE * 18 |
ソースコード
n, X = [int(x) for x in input().split(' ')]
nums = [int(x) for x in input().split(' ')]
count = 0
for i in nums:
target_num = X - i
if target_num in nums:
count += nums.count(target_num)
print(count)
sekihankamibanz