結果

問題 No.1118 sin(x)/xの二乗和
ユーザー noimi
提出日時 2020-07-17 23:19:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 266 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 70,900 KB
最終ジャッジ日時 2024-11-30 03:05:46
合計ジャッジ時間 64,136 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import*
from math import*
from numpy import*
ans = 0
x = float(input())
T = 1000000
for i in range(T):
    if x == 0 and i == 0 :
        ans = 1
    else :
        ans += sinc(x+i)*sinc(x+i)
ans += pi/2
S,C = sici((x + T-1)*2)
ans -= S
print(ans)
0