結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー hogeover30hogeover30
提出日時 2015-02-09 03:01:01
言語 Ruby
(3.2.2)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 15,508 KB
最終ジャッジ日時 2023-09-29 22:28:26
合計ジャッジ時間 3,970 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,236 KB
testcase_01 AC 83 ms
15,408 KB
testcase_02 AC 83 ms
15,408 KB
testcase_03 AC 82 ms
15,392 KB
testcase_04 AC 82 ms
15,220 KB
testcase_05 AC 82 ms
15,432 KB
testcase_06 AC 82 ms
15,252 KB
testcase_07 AC 83 ms
15,292 KB
testcase_08 AC 81 ms
15,476 KB
testcase_09 AC 80 ms
15,296 KB
testcase_10 AC 82 ms
15,300 KB
testcase_11 AC 82 ms
15,236 KB
testcase_12 AC 81 ms
15,432 KB
testcase_13 AC 82 ms
15,508 KB
testcase_14 AC 81 ms
15,496 KB
testcase_15 AC 81 ms
15,404 KB
testcase_16 AC 83 ms
15,428 KB
testcase_17 AC 82 ms
15,500 KB
testcase_18 AC 82 ms
15,456 KB
testcase_19 AC 83 ms
15,440 KB
testcase_20 AC 82 ms
15,416 KB
testcase_21 AC 82 ms
15,404 KB
testcase_22 AC 83 ms
15,480 KB
testcase_23 AC 81 ms
15,408 KB
testcase_24 AC 82 ms
15,148 KB
testcase_25 AC 82 ms
15,504 KB
testcase_26 AC 82 ms
15,168 KB
testcase_27 AC 82 ms
15,384 KB
testcase_28 AC 82 ms
15,160 KB
testcase_29 AC 82 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'bigdecimal'
res=BigDecimal(0)
gets.to_i.times { res+=BigDecimal(gets.chomp); }
res=res.to_s("F")
puts res+'0'*(10-res.reverse.index('.'))
0