結果

問題 No.3072 Sum of sqrt(x)
ユーザー ShirotsumeShirotsume
提出日時 2023-08-03 01:04:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,087 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 1,124 ms
コンパイル使用メモリ 82,232 KB
実行使用メモリ 79,488 KB
最終ジャッジ日時 2024-04-21 00:52:38
合計ジャッジ時間 151,562 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
55,296 KB
testcase_01 AC 51 ms
54,912 KB
testcase_02 AC 51 ms
55,168 KB
testcase_03 AC 52 ms
54,912 KB
testcase_04 AC 56 ms
55,296 KB
testcase_05 AC 52 ms
55,040 KB
testcase_06 AC 53 ms
55,168 KB
testcase_07 AC 743 ms
79,104 KB
testcase_08 AC 281 ms
78,208 KB
testcase_09 AC 724 ms
79,204 KB
testcase_10 AC 947 ms
79,480 KB
testcase_11 AC 923 ms
79,232 KB
testcase_12 AC 951 ms
79,132 KB
testcase_13 AC 932 ms
79,360 KB
testcase_14 AC 937 ms
79,044 KB
testcase_15 AC 950 ms
79,232 KB
testcase_16 AC 951 ms
79,232 KB
testcase_17 AC 954 ms
79,040 KB
testcase_18 AC 950 ms
79,012 KB
testcase_19 AC 973 ms
79,104 KB
testcase_20 AC 1,087 ms
79,104 KB
testcase_21 AC 987 ms
79,232 KB
testcase_22 AC 936 ms
79,172 KB
testcase_23 AC 940 ms
79,224 KB
testcase_24 AC 940 ms
79,068 KB
testcase_25 AC 932 ms
79,488 KB
testcase_26 AC 962 ms
79,360 KB
testcase_27 AC 796 ms
78,976 KB
testcase_28 AC 833 ms
79,488 KB
testcase_29 AC 881 ms
79,220 KB
権限があれば一括ダウンロードができます

ソースコード

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