結果

問題 No.3072 Sum of sqrt(x)
ユーザー tcltktcltk
提出日時 2021-01-16 05:49:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 584 bytes
コンパイル時間 1,172 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 97,096 KB
最終ジャッジ日時 2023-08-18 02:18:51
合計ジャッジ時間 58,955 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 278 ms
92,036 KB
testcase_01 AC 277 ms
91,592 KB
testcase_02 AC 279 ms
91,688 KB
testcase_03 AC 273 ms
91,728 KB
testcase_04 AC 280 ms
91,888 KB
testcase_05 AC 275 ms
91,764 KB
testcase_06 AC 274 ms
91,712 KB
testcase_07 WA -
testcase_08 AC 614 ms
97,096 KB
testcase_09 AC 713 ms
96,008 KB
testcase_10 AC 959 ms
95,536 KB
testcase_11 AC 1,497 ms
95,024 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#region Header
#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
from queue import PriorityQueue
import bisect
import heapq

def input():
    return sys.stdin.readline()[:-1]

sys.setrecursionlimit(1000000)
#endregion

# _INPUT = """# paste here...
# """
# sys.stdin = io.StringIO(_INPUT)


def main():
    N = int(input())

    s = 0
    for _ in range(N):
        x = int(input())
        s += math.sqrt(x)
        print(s)


if __name__ == '__main__':
    main()
0