結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
|
| 提出日時 | 2024-08-22 12:22:32 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 677 ms / 2,000 ms |
| + 479µs | |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 389 ms |
| コンパイル使用メモリ | 64,528 KB |
| 実行使用メモリ | 155,884 KB |
| 最終ジャッジ日時 | 2026-10-23 11:57:52 |
| 合計ジャッジ時間 | 102,496 ms |
|
ジャッジサーバーID (参考情報) |
judge3_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)
ans += int(math.sqrt(x) * 10**22)
d = str(ans // 10**22)
s = str(ans)[:len(d)] + "." + str(ans)[len(d):]
print(s[:19])
if __name__ == "__main__":
main()