結果
問題 |
No.3072 Speedrun Query
|
ユーザー |
![]() |
提出日時 | 2025-06-12 18:08:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 501 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 83,028 KB |
実行使用メモリ | 80,960 KB |
最終ジャッジ日時 | 2025-06-12 18:09:44 |
合計ジャッジ時間 | 6,582 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 2 TLE * 1 -- * 18 |
ソースコード
import sys from decimal import Decimal, getcontext getcontext().prec = 35 # Set sufficient precision to handle all required digits def main(): input = sys.stdin.read().split() n = int(input[0]) x_list = input[1:n+1] sum_total = Decimal(0) for x_str in x_list: xi = Decimal(x_str) sqrt_xi = xi.sqrt() sum_total += sqrt_xi # Format to 17 decimal places print("{0:.17f}".format(sum_total)) if __name__ == "__main__": main()