結果
| 問題 |
No.723 2つの数の和
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-23 01:59:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 817,832 KB |
| 最終ジャッジ日時 | 2024-09-25 10:24:07 |
| 合計ジャッジ時間 | 3,188 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | MLE * 1 -- * 21 |
ソースコード
import sys
import itertools
input = sys.stdin.readline
n, x = map(int, input().split())
a = list(map(int, input().split()))
aa = list(itertools.product(a, repeat=2))
count = 0
for ele in aa:
if (ele[0] + ele[1]) == x:
count += 1
print(count)