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