結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
sekihankamibanz
|
| 提出日時 | 2018-10-25 20:37:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 31,468 KB |
| 最終ジャッジ日時 | 2024-11-19 05:47:18 |
| 合計ジャッジ時間 | 56,477 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 3 WA * 1 TLE * 18 |
ソースコード
n, x = [int(s) for s in input().split(' ')]
nums = sorted([int(s) for s in input().split(' ')])
count = 0
for indexs, i in enumerate(nums):
for s in nums[indexs:]:
if (i + s) == x:
count += 1
elif (i + s) > x:
break
print(count)
sekihankamibanz