結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
sekihankamibanz
|
| 提出日時 | 2018-10-25 20:35:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,712 KB |
| 最終ジャッジ日時 | 2024-11-19 05:46:22 |
| 合計ジャッジ時間 | 2,738 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 22 |
ソースコード
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[index:]:
if (i + s) == x:
count += 1
elif (i + s) > x:
break
print(count)
sekihankamibanz