結果
問題 | No.723 2つの数の和 |
ユーザー |
|
提出日時 | 2020-12-30 07:54:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 188 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 818,036 KB |
最終ジャッジ日時 | 2024-10-06 15:19:43 |
合計ジャッジ時間 | 3,729 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | MLE * 1 -- * 21 |
ソースコード
import itertools as it n,x=map(int,input().split()) l=list(map(int,input().split())) a=list(it.combinations_with_replacement(l,2)) a=[y for y in a if sum(y)==x] print(len(a)*2-(x//2 in l))