結果

問題 No.3072 Sum of sqrt(x)
ユーザー yuppe19 😺yuppe19 😺
提出日時 2020-09-12 22:36:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 880 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 1,787 ms
コンパイル使用メモリ 85,820 KB
実行使用メモリ 160,716 KB
最終ジャッジ日時 2023-08-30 19:29:31
合計ジャッジ時間 152,367 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,264 KB
testcase_01 AC 71 ms
71,100 KB
testcase_02 AC 72 ms
71,052 KB
testcase_03 AC 71 ms
71,556 KB
testcase_04 AC 70 ms
71,196 KB
testcase_05 AC 70 ms
71,312 KB
testcase_06 AC 70 ms
71,408 KB
testcase_07 AC 627 ms
127,296 KB
testcase_08 AC 267 ms
126,864 KB
testcase_09 AC 581 ms
127,576 KB
testcase_10 AC 789 ms
160,196 KB
testcase_11 AC 805 ms
160,500 KB
testcase_12 AC 790 ms
160,496 KB
testcase_13 AC 847 ms
160,652 KB
testcase_14 AC 802 ms
160,356 KB
testcase_15 AC 801 ms
160,396 KB
testcase_16 AC 769 ms
159,248 KB
testcase_17 AC 802 ms
160,676 KB
testcase_18 AC 820 ms
160,716 KB
testcase_19 AC 794 ms
160,480 KB
testcase_20 AC 794 ms
160,408 KB
testcase_21 AC 821 ms
160,512 KB
testcase_22 AC 795 ms
160,576 KB
testcase_23 AC 769 ms
160,344 KB
testcase_24 AC 880 ms
160,212 KB
testcase_25 AC 827 ms
160,468 KB
testcase_26 AC 832 ms
160,352 KB
testcase_27 AC 666 ms
130,900 KB
testcase_28 AC 668 ms
141,552 KB
testcase_29 AC 761 ms
143,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

###
if __name__ == '__main__':
    dat = os.read(0, 20000010).decode().split('\n')
    acc = 0
    for x in dat[1:-1]:
        acc += int(sqrt(int(x)) * 10**15)
        s = str(acc)
        print(s[:-15] + '.' + s[-15:17])
0