結果
| 問題 |
No.1118 sin(x)/xの二乗和
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-17 23:18:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 58,204 KB |
| 最終ジャッジ日時 | 2024-11-30 03:02:22 |
| 合計ジャッジ時間 | 22,651 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 20 |
ソースコード
from scipy.special import*
from math import*
ans = 0
x = int(input())
T = 1000000
for i in range(T):
if x == 0 and i == 0 :
ans = 1
else :
ans += sin(x + i) * sin(x + i) / (x + i) / (x+i)
ans += pi/2
S,C = sici((x + T-1)*2)
ans -= S
print(ans)