結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー tubo28tubo28
提出日時 2014-11-27 23:57:37
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 172 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 11,456 KB
実行使用メモリ 15,380 KB
最終ジャッジ日時 2023-08-21 12:56:57
合計ジャッジ時間 3,785 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,072 KB
testcase_01 AC 77 ms
15,264 KB
testcase_02 AC 78 ms
15,236 KB
testcase_03 AC 76 ms
15,152 KB
testcase_04 AC 77 ms
15,380 KB
testcase_05 AC 77 ms
15,184 KB
testcase_06 AC 78 ms
15,136 KB
testcase_07 AC 79 ms
15,128 KB
testcase_08 AC 78 ms
15,180 KB
testcase_09 AC 78 ms
15,188 KB
testcase_10 WA -
testcase_11 AC 77 ms
15,332 KB
testcase_12 AC 77 ms
15,108 KB
testcase_13 AC 77 ms
15,308 KB
testcase_14 AC 77 ms
15,296 KB
testcase_15 AC 77 ms
15,064 KB
testcase_16 AC 78 ms
15,260 KB
testcase_17 WA -
testcase_18 AC 81 ms
15,072 KB
testcase_19 AC 78 ms
15,132 KB
testcase_20 AC 77 ms
15,184 KB
testcase_21 AC 77 ms
15,056 KB
testcase_22 AC 78 ms
15,308 KB
testcase_23 AC 78 ms
15,268 KB
testcase_24 AC 78 ms
15,152 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 79 ms
15,180 KB
testcase_29 AC 77 ms
15,332 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'rational'
n = gets.to_i
s = Rational(0)
n.times do
  s += Rational(gets)
end
S = (s*10**10).to_i.to_s
puts "#{S[0..(S.size-11)]}.#{S[S.size-10,10000000]}"
0