結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
|
| 提出日時 | 2024-08-22 12:20:09 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,255 ms / 2,000 ms |
| + 473µs | |
| コード長 | 340 bytes |
| 記録 | |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 64,616 KB |
| 実行使用メモリ | 155,996 KB |
| 最終ジャッジ日時 | 2026-10-23 11:56:10 |
| 合計ジャッジ時間 | 96,648 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import os
import math
def main():
dat = os.read(0, 20000010).decode().split('\n')
ans = 0
for x in dat[1:-1]:
x = int(x)
x *= 10**40
ans += math.isqrt(x)
d = str(ans // 10**20)
s = str(ans)[:len(d)] + "." + str(ans)[len(d):]
print(s[:19])
if __name__ == "__main__":
main()