結果
| 問題 |
No.8072 Sum of sqrt(x)
|
| ユーザー |
|
| 提出日時 | 2024-08-22 11:32:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 841 bytes |
| コンパイル時間 | 4,109 ms |
| コンパイル使用メモリ | 81,780 KB |
| 実行使用メモリ | 107,176 KB |
| 最終ジャッジ日時 | 2024-08-22 11:34:18 |
| 合計ジャッジ時間 | 23,619 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 5 TLE * 1 OLE * 21 |
ソースコード
import sys
import math
import bisect
from heapq import heapify, heappop, heappush
from collections import deque, defaultdict, Counter
from functools import lru_cache
from itertools import accumulate, combinations, permutations, product
sys.set_int_max_str_digits(10 ** 6)
sys.setrecursionlimit(1000000)
MOD = 10 ** 9 + 7
MOD99 = 998244353
input = lambda: sys.stdin.readline().strip()
NI = lambda: int(input())
NMI = lambda: map(int, input().split())
NLI = lambda: list(NMI())
SI = lambda: input()
SMI = lambda: input().split()
SLI = lambda: list(SMI())
EI = lambda m: [NLI() for _ in range(m)]
def main():
N = NI()
ans = 0
for _ in range(N):
x = NI() * 10**40
ans += math.isqrt(x)
d = ans // 10**20
r = ans - d * 10**20
print(d, ".", r, sep="")
if __name__ == "__main__":
main()