結果

問題 No.8072 Sum of sqrt(x)
ユーザー Shirotsume
提出日時 2023-08-03 01:04:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 898 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 706 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 79,488 KB
最終ジャッジ日時 2024-10-12 23:12:16
合計ジャッジ時間 148,142 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353
from math import sqrt

n = ii()


now = 0


for i in range(n):
    now += int(sqrt(ii()) * 10 ** 15)
    to = str(now)
    
    print(to[:-15] + '.' + to[-15:17])
0