結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー hogeover30hogeover30
提出日時 2015-02-09 02:46:27
言語 Ruby
(3.2.2)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 191 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 11,252 KB
実行使用メモリ 15,420 KB
最終ジャッジ日時 2023-09-29 22:27:55
合計ジャッジ時間 4,153 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,420 KB
testcase_01 AC 80 ms
15,160 KB
testcase_02 AC 79 ms
15,232 KB
testcase_03 AC 78 ms
15,368 KB
testcase_04 AC 78 ms
15,268 KB
testcase_05 AC 77 ms
15,256 KB
testcase_06 AC 77 ms
15,400 KB
testcase_07 AC 78 ms
15,268 KB
testcase_08 AC 78 ms
15,376 KB
testcase_09 AC 78 ms
15,356 KB
testcase_10 AC 78 ms
15,368 KB
testcase_11 AC 82 ms
15,416 KB
testcase_12 AC 82 ms
15,376 KB
testcase_13 AC 82 ms
15,208 KB
testcase_14 AC 78 ms
15,372 KB
testcase_15 AC 78 ms
15,204 KB
testcase_16 AC 79 ms
15,268 KB
testcase_17 AC 78 ms
15,184 KB
testcase_18 AC 78 ms
15,376 KB
testcase_19 AC 78 ms
15,376 KB
testcase_20 AC 79 ms
15,372 KB
testcase_21 AC 78 ms
15,380 KB
testcase_22 AC 83 ms
15,240 KB
testcase_23 AC 77 ms
15,208 KB
testcase_24 AC 78 ms
15,256 KB
testcase_25 AC 77 ms
15,392 KB
testcase_26 AC 78 ms
15,120 KB
testcase_27 AC 77 ms
15,372 KB
testcase_28 AC 78 ms
15,352 KB
testcase_29 AC 79 ms
15,360 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'bigdecimal'

res=BigDecimal('0', 30)
gets.to_i.times {
    res+=BigDecimal(gets.chomp, 30);
}
res=res.to_s("F")
d=res.index('.')
while res.length-d<=10 do
    res+='0'
end
puts res

0