結果
| 問題 |
No.3072 Speedrun Query
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 23:55:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 565 bytes |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 81,736 KB |
| 実行使用メモリ | 79,920 KB |
| 最終ジャッジ日時 | 2025-04-15 23:57:47 |
| 合計ジャッジ時間 | 6,231 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 2 TLE * 1 -- * 18 |
ソースコード
import decimal
import sys
decimal.getcontext().prec = 25 # Set sufficient precision to handle up to 1e18 accurately
def main():
data = sys.stdin.read().split()
n = int(data[0])
xs = data[1:n+1]
sum_total = decimal.Decimal(0)
output = []
for x_str in xs:
x = decimal.Decimal(x_str)
sqrt_x = x.sqrt()
sum_total += sqrt_x
# 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()
lam6er