結果

問題 No.8072 Sum of sqrt(x)
ユーザー Lisp_Coder
提出日時 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

ソースコード

diff #

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) }
0