結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2021-10-24 17:20:43 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 186 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 81,536 KB |
実行使用メモリ | 87,296 KB |
最終ジャッジ日時 | 2024-10-02 02:55:49 |
合計ジャッジ時間 | 12,364 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 RE * 1 |
other | AC * 3 RE * 1 TLE * 1 -- * 22 |
ソースコード
import decimal N=int(input()) ans=0 decimal.getcontext().prec=20 for _ in range(N): x=int(input()) r=x for i in range(50): r=(r**2+x)/(2*r) ans+=r print(ans)