結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-06-21 11:47:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,792 ms / 2,000 ms |
コード長 | 184 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 253,740 KB |
最終ジャッジ日時 | 2024-10-12 12:38:50 |
合計ジャッジ時間 | 162,886 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)