結果

問題 No.8072 Sum of sqrt(x)
ユーザー Mao-beta
提出日時 2024-08-22 12:20:09
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 340 bytes
コンパイル時間 461 ms
コンパイル使用メモリ 82,540 KB
実行使用メモリ 164,404 KB
最終ジャッジ日時 2024-08-22 12:21:14
合計ジャッジ時間 62,518 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 TLE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import os
import math

def main():
    dat = os.read(0, 20000010).decode().split('\n')
    ans = 0
    for x in dat[1:-1]:
        x = int(x)
        x *= 10**40
        ans += math.isqrt(x)
        d = str(ans // 10**20)
        s = str(ans)[:len(d)] + "." + str(ans)[len(d):]
        print(s[:19])


if __name__ == "__main__":
    main()
0