結果
| 問題 |
No.3072 Speedrun Query
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 19:52:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 576 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 82,100 KB |
| 実行使用メモリ | 80,640 KB |
| 最終ジャッジ日時 | 2025-06-12 19:53:34 |
| 合計ジャッジ時間 | 5,442 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 2 TLE * 1 -- * 18 |
ソースコード
import sys
from decimal import Decimal, getcontext
def main():
getcontext().prec = 35 # Sufficient precision to handle up to 1e18 sqrt accurately
data = sys.stdin.read().split()
n = int(data[0])
xs = data[1:n+1]
sum_total = Decimal(0)
output = []
for x in xs:
xi = Decimal(x)
sqrt_xi = xi.sqrt()
sum_total += sqrt_xi
# Format to 17 decimal places, ensuring trailing zeros are included
output.append("{0:.17f}".format(sum_total))
print('\n'.join(output))
if __name__ == "__main__":
main()
gew1fw