結果
問題 |
No.1385 Simple Geometry 2
|
ユーザー |
|
提出日時 | 2021-02-03 17:46:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 124,056 KB |
最終ジャッジ日時 | 2024-07-04 12:59:31 |
合計ジャッジ時間 | 43,127 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 10 TLE * 55 |
ソースコード
import numpy as np from numpy.fft import fft, ifft from math import pi n, l = map(int, input().split()) t = np.array(map(int, input().split())) * (2*pi/l) sin = np.sin(t) cos = np.cos(t) x = ifft(fft(cos)*fft(sin)) * np.arange(n) print(np.sum(x))