結果
| 問題 | 
                            No.8072 Sum of sqrt(x)
                             | 
                    
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-04-14 22:20:30 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 244 bytes | 
| コンパイル時間 | 879 ms | 
| コンパイル使用メモリ | 7,552 KB | 
| 実行使用メモリ | 132,000 KB | 
| 最終ジャッジ日時 | 2024-10-10 13:13:32 | 
| 合計ジャッジ時間 | 14,173 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 4 TLE * 1 -- * 22 | 
コンパイルメッセージ
Syntax OK
ソースコード
def gi
  gets.to_i
end
def gm
  gets.split.map(&:to_i)
end
def gc
  gets.chomp
end
def gf
  gets.to_f
end
n = gi
sum = 0.0
result = []
n.times do
  x = gi
  sum += Math.sqrt(x)
  result << sum
end
puts result.map { |x| format("%.20f", x) }