結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
vwxyz
|
| 提出日時 | 2021-10-24 17:20:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 85,436 KB |
| 実行使用メモリ | 86,420 KB |
| 最終ジャッジ日時 | 2026-04-18 12:18:24 |
| 合計ジャッジ時間 | 29,923 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 21 OLE * 1 |
ソースコード
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