結果
問題 | No.8072 Sum of sqrt(x) |
ユーザー |
|
提出日時 | 2020-09-12 18:07:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,322 ms / 2,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 253,712 KB |
最終ジャッジ日時 | 2024-06-25 15:25:23 |
合計ジャッジ時間 | 143,349 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#!/usr/bin/env python3# †import sysfrom math import sqrtdef pritty(x):if x == 0:return 0s = str(x)return (s[:-15] + '.' + s[-15:17]).rstrip('.')read = sys.stdin.buffer.read###if __name__ == '__main__':n, *xs = map(int, read().split())acc = 0for x in xs:acc += int(sqrt(x * 10**30))print(pritty(acc))