結果
問題 |
No.723 2つの数の和
|
ユーザー |
![]() |
提出日時 | 2020-12-30 14:09:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 259 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 115,476 KB |
最終ジャッジ日時 | 2024-10-07 07:00:50 |
合計ジャッジ時間 | 6,964 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 -- * 2 |
other | -- * 22 |
ソースコード
import numpy as np from scipy.signal import fftconvolve N, X = map(int, input().split()) A = np.array(input().split(), dtype=np.int32) A = np.bincount(A) F = np.rint(fftconvolve(A, A) + 0.01).astype(np.int32) if X < len(F): print(F[X]) else: print(0)