結果
| 問題 | No.8072 Sum of sqrt(x) |
| ユーザー |
maspy
|
| 提出日時 | 2020-06-21 11:47:00 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 906 ms / 2,000 ms |
| + 325µs | |
| コード長 | 184 bytes |
| 記録 | |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 80,768 KB |
| 実行使用メモリ | 277,644 KB |
| 最終ジャッジ日時 | 2026-09-14 18:18:07 |
| 合計ジャッジ時間 | 112,989 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
import sys
read = sys.stdin.buffer.read
N, *nums = map(int, read().split())
s,t,r = 0, 0, 0
for x in nums:
x = x**.5 + r
t = s + x
r = x - (t - s)
s = t
print(s)
maspy