結果

問題 No.3072 Sum of sqrt(x)
ユーザー yuppe19 😺yuppe19 😺
提出日時 2020-09-12 18:07:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,673 ms / 2,000 ms
コード長 369 bytes
コンパイル時間 949 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 251,880 KB
最終ジャッジ日時 2023-09-07 21:48:43
合計ジャッジ時間 170,160 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,500 KB
testcase_01 AC 75 ms
71,492 KB
testcase_02 AC 75 ms
71,324 KB
testcase_03 AC 92 ms
71,380 KB
testcase_04 AC 79 ms
71,720 KB
testcase_05 AC 79 ms
71,120 KB
testcase_06 AC 79 ms
71,188 KB
testcase_07 AC 826 ms
221,096 KB
testcase_08 AC 638 ms
220,564 KB
testcase_09 AC 800 ms
221,312 KB
testcase_10 AC 1,220 ms
232,844 KB
testcase_11 AC 1,239 ms
233,192 KB
testcase_12 AC 1,458 ms
232,860 KB
testcase_13 AC 1,451 ms
232,380 KB
testcase_14 AC 1,395 ms
232,828 KB
testcase_15 AC 1,271 ms
232,620 KB
testcase_16 AC 1,352 ms
232,900 KB
testcase_17 AC 1,115 ms
232,848 KB
testcase_18 AC 1,076 ms
233,092 KB
testcase_19 AC 971 ms
233,176 KB
testcase_20 AC 1,152 ms
233,108 KB
testcase_21 AC 1,175 ms
233,272 KB
testcase_22 AC 1,405 ms
232,912 KB
testcase_23 AC 1,324 ms
232,012 KB
testcase_24 AC 1,673 ms
232,904 KB
testcase_25 AC 1,321 ms
232,792 KB
testcase_26 AC 1,463 ms
232,964 KB
testcase_27 AC 1,061 ms
230,852 KB
testcase_28 AC 1,205 ms
251,880 KB
testcase_29 AC 1,658 ms
238,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/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