結果

問題 No.8072 Sum of sqrt(x)
ユーザー yuppe19 😺
提出日時 2020-09-12 18:07:01
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 613 ms / 2,000 ms
+ 139µs
コード長 369 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,458 ms
コンパイル使用メモリ 64,448 KB
実行使用メモリ 212,704 KB
最終ジャッジ日時 2026-10-23 11:23:12
合計ジャッジ時間 102,439 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/env python3
# †
import sys
from math import sqrt

def pritty(x):
    if x == 0:
        return 0
    s = str(x)
    return (s[:-15] + '.' + s[-15:17]).rstrip('.')

read = sys.stdin.buffer.read

###
if __name__ == '__main__':
    n, *xs = map(int, read().split())
    acc = 0
    for x in xs:
        acc += int(sqrt(x * 10**30))
        print(pritty(acc))
0